A tiny jQuery (or Zepto) plugin to rotate elements by scrolling window.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
LICENSE
demo.js
index.html
jquery-scroll-rotate.js
jquery-scroll-rotate.min.js
readme.md
recsset.min.css
vinyl.svg
zepto.min.js

readme.md

jQuery-Scroll-Rotate


A super-tiny (<1KB, minified) jQuery (or Zepto) plugin to rotate elements by scrolling window. Version 2.

Note: This plugin is requires jQuery, or Zepto.

Usage

elem.scrollRotate(opts);

opts

  • clockwise: (boolean) Direction of rotation. true for clockwise, false for counterclockwise. Default: true
  • speed: (number) Speed of rotation, bigger is faster. Default: 0.5
  • smooth: (boolean) Use smooth transition or not. Default: true

Demo

Link to demo

License

MIT