lukeed / bee3d

Support Forum for Bee3D Slider, found @ http://www.lukeed.com/demo/bee3D
MIT License
7 stars 2 forks source link

Concave effect, how to set number of visible sliders? #78

Closed anthonylan closed 4 years ago

anthonylan commented 4 years ago

Hi Lukeed, so I actually bought this plugin because of the concave effect. by default only 3 sliders are visible, but I'd like to make 4 or 5 sliders to be visible. please how can it be done?

lukeed commented 4 years ago

Hi there,

Unfortunately, concave is only meant to display 3 slides at a time. And there's no JS option to easily change this.

All effects are completely controlled through CSS transformations. This is what makes Bee3D so performant. In concave effect, this also includes how many slides are visible (via translation + scale + rotation).

So you'll have to manually:

While not the same thing, you can look at a previous answer as an additional guideline for your customizations :)

One thing to remember is that you only have to calculate one set of transformations! The before and after classes are inverses of each other. Once you're happy with one half, just go from positive to negative for translations, and then offset from 0 or 360 for rotations.

Hope that helps!

anthonylan commented 4 years ago

Thanks a lot, Lukeed, it worked!