Skip to content

jQuery plugin for a venetian blind-like banner made of rolling stripes animated with CSS3 3D transforms

License

Notifications You must be signed in to change notification settings

dulacp/Venetian.js

Repository files navigation

Venetian.js

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

Screenshot of the demo

Demo

Try the demo project

Usage

Dependencies

  • Photon is optional but it makes the animation more realistic by adding some shadows during the rolling animation.

Installation

  1. Clone the repository

    $ git clone git://github.com/dulaccc/Venetian.js.git
  2. 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
  3. Copy of the following files to your project :

  4. Check out the example/index.html file to see how to initialize the module in your project and load some data in the stripes.

Minified version

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

Roadmap

  • 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

Contact

Pierre Dulac
@dulaccc

License

Venetian.js is available under the MIT license. See the LICENSE file for more info.

About

jQuery plugin for a venetian blind-like banner made of rolling stripes animated with CSS3 3D transforms

Resources

License

Stars

Watchers

Forks

Packages

No packages published