Apr
4
2012

jQuery Plugin Scroll Path

jQuery Plugin Scroll Path demo

plugin ตัวนี้จะช่วยให้คุณสร้างการเลื่อน scroll หน้าเว็บตามที่คุณต้องการได้ง่ายขึ้น

jQuery Scroll Path is a plugin that lets you define your own custom scroll path. What this means exactly is best understood by checking out the demo. 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 scrollbar is enabled by default.

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.

As of version 1.1, the plugin also allows you to animate the scroll position to a given waypoint in the path.

Are you using jQuery Scroll Path on any of your sites? I’d love to hear about it, and I might include links here for showcasing the plugin being used in the wild.

Homepage Demo Download

Related Posts

Flag Visitors

free counters