jQuery plugin for venetian blind-like banner made of rolling stripes animated with CSS3 3D transforms
The development of this plugin was made at Uplight
- Photon is optional but it makes the animation more realistic by adding some shadows during the rolling animation.
-
Clone the repository
$ git clone git://github.com/dulaccc/Venetian.js.git
-
Then you need to configure the size of your stripes, because it changes all the css values needed for the CSS 3D transforms.
Just open the
stripes.scss
file and modify the variables in the head of the file. And when you're done, run the following command to override the default css styles that I was using.$ sass stripes.scss:stripes.css
-
Copy of the following files to your project :
jquery.venetian.min.js
stripes.css
the one you've just generated or the one by defaultphoton.min.js
optional but recommanded
-
Check out the example/index.html file to see how to initialize the module in your project and load some data in the stripes.
The minified version was generated using the uglifyjs
command line tool.
$ uglifyjs venetian.js -cm --lint -o venetian.min.js
the picture of kittens comes from placekitten
- Improve the way we set a stripe background image, the plugin should take care of the
background-position
not the user. - Reverse the animation with a
previous
method
Venetian.js is available under the MIT license. See the LICENSE file for more info.