简体   繁体   中英

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. 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/

They use this code:

itemLength: browserWidth * 0.8

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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