specious / cloud9carousel

:cyclone: 3D-perspective carousel for jQuery / Zepto
http://j.mp/cloud9demo
233 stars 88 forks source link

Possible to move carousel in constant speed? #38

Open coco175 opened 4 years ago

coco175 commented 4 years ago

What has to be done in order to move the carousel in a constant motion? Not jumping from one item to the next... I am looking for a constant, smooth turning of the items,. I s that possible? Thanks

specious commented 2 years ago

That would be possible by adjusting the formula that calculates by how much the carousel will rotate between two animation frames:

https://github.com/specious/cloud9carousel/blob/c25c4ccf21c0f831142b313d0e733b79a6731bb2/jquery.cloud9carousel.js#L215-L217

A pull request for a feature that would enable selecting, for example, among multiple easing functions that govern the motion would be quite appreciated.