Define Custom Scroll Paths With jQuery Scroll Path
You saw sites that only scrolls up, down, left or right? why not create a site that can scroll in a completely custom way, including curves, diagonals, and even rotations! An awesome way to add life to single-page sites.
jQuery Scroll Path is a jQuery plugin for defining a custom path that the browser follows when scrolling.
The plugin uses canvas flavored syntax for drawing paths, using the methods moveTo, lineTo and arc. To help with getting the path right, a canvas overlay with the path can be enabled when initating the plugin.
Scrolling can be done with the mousewheel, up/down arrow keys and spacebar. The spacebar scrolls faster than the arrow keys, and holding shift while pressing space will scroll backwards. A custom scrollbar is also included, which allows click and drag scrolling.
The plugin also allows rotating the entire page, using CSS transforms. This can be done either along a path, or around the current position. In browsers without CSS transform support, all rotations are ignored, but paths are still followed. This means the plugin works with graceful degradation in all browsers.
Recent Comments