Skip to content

iqbalperkasa/jquery-scroll-rotate

Repository files navigation

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

About

A tiny jQuery (or Zepto) plugin to rotate elements by scrolling window.

Resources

License

Stars

Watchers

Forks