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.
elem.scrollRotate(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