pichfl / jquery.slidescroll Goto Github PK
View Code? Open in Web Editor NEWA jQuery plugin inspired by Apple's product page for the iPhone 5s
License: MIT License
A jQuery plugin inspired by Apple's product page for the iPhone 5s
License: MIT License
Apple's product page animates with a fade if you jump from page 1 to page 3 instead of scrolling.
On line 236 of slidescroll.js touchevent defaults are disabled with event.preventDefault();
I commented this out and the plugin still seems to function properly and touch events are now working but I have not gone any further than that.
How could I add the autoplay option?
Thanks
Extracted from #1
Enable touch support as claimed in the README.
The plugin requires a specific html structure to work properly which isn't an ideal solution.
The wrapper, which is used to animate the page position could be generated with JavaScript for better control.
This could however have possible side effects for styling the content.
Adding a className for the current page would allow for individual styling of the active state and easier css animations/transitions without using the (already available) callback functions.
A className for the changing state should be considered as well.
Some part of the plugin rely on the transitionend event, which should also be fixed in that step.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.