简体   繁体   English

Sencha Touch轮播,两侧均显示无效的幻灯片

[英]Sencha Touch Carousel with inactive slides visible either side

I'm looking to create a Sencha Touch carousel that doesn't only show the current active slide. 我希望创建一个不仅显示当前活动幻灯片的Sencha Touch转盘。 I want to have the main active slide visible in the middle, but also have the slides either side visible too. 我想在中间看到主要的活动幻灯片,但也要在两侧看到幻灯片。

How is this possible? 这怎么可能?

Here's an example of what I'm trying to achieve: 这是我要实现的目标的一个示例:

在此处输入图片说明

As you can see, the slides either side are visible and a little greyed out. 如您所见,左右两边的幻灯片都是可见的,并且有些变灰。

This blog post explains how to do it, they use it in their app: http://www.sencha.com/blog/using-the-leap-motion-controller-with-sencha-touch/ 这篇博客文章解释了如何做到这一点,他们在他们的应用程序中使用它: http : //www.sencha.com/blog/using-the-leap-motion-controller-with-sencha-touch/

They use this code: 他们使用以下代码:

itemLength: browserWidth * 0.8

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM