I am looking to take the Cloud Carousel by Professor Cloud on http://www.professorcloud.com/mainsite/carousel.htm and make it scroll vertically. I can see that reflections may be an issue with a vertical scroll and if they are that's okay, I can do without them, I'd like an option to enable them if possible. Thanks for all of your help. (I need it to fit here: http://www.inspiritandintruth.com on the right bar.)
相关问题
- Is there a limit to how many levels you can nest i
- How to toggle on Order in ReactJS
- How to fix IE ClearType + jQuery opacity problem i
- void before promise syntax
- jQuery add and remove delay
I have the same problem. I found these two that have the same 3d effect and Do support vertical scrolling out of the box.
http://www.jacksasylum.eu/ContentFlow/
http://www.bkosborne.com/jquery-waterwheel-carousel
I guess you could either use one of them or look at their code to see how they did it.
Hope that helps.
B
So after digging around the code I finally figured it out. In case anyone ever attempts to do this on their own site here's what I got: At about line 260 of the non-minified version, you have two lines like this:
Just Change them to:
Notice how the x and y have been switched (3x)
You'll need to mess around with the initialization stuff especially the xPos and xRadius, here were my end results:
Hope this helps someone, you can see it in action (and even more highly customized) at http://www.inspiritandintruth.com