1.0.1 • Published 7 years ago

parallax_color_bars v1.0.1

Weekly downloads
2
License
ISC
Repository
github
Last release
7 years ago

parallaxColorBars

Demo

https://lemehovskiy.github.io/parallaxColorBars/demo

Package Managers

# NPM
npm install parallax_color_bars

Data Attribute Settings

In parallaxColorBars you can now add settings using the data-parallax-color-bar attribute. You still need to call $(element).parallaxColorBars() to initialize parallaxColorBars on the element.

Example:

<div data-parallax-color-bar='{"left": 70, "top": 20, "width": 15, "height": 60, "shift": 300, "duration": 2}'></div>

Settings

OptionTypeDefault
topint50
leftint50
widthint10
heightint20
shiftint10
durationint1.5

Browser support

  • Chrome
  • Firefox
  • Opera
  • IE10/11

Dependencies

  • jQuery 1.7
  • Gsap