Description
BGEffects for jQuery is a JavaScript component for creating perspective animations using background images. It requires jQuery and class.js libraries.
Download
- [not available yet]
Dependencies
Compatibility
- Firefox 3.6+
- Chrome 9+
- Internet Explorer 8+
- Safari 5+ (class.js incompatibility)
- Opera 10+ (class.js incompatibility)
Inspired from
- Nicolas Gallagher: http://nicolasgallagher.com/multiple-backgrounds-and-borders-with-css2/
- Silverback: http://silverbackapp.com/
BGEffects.PerspectiveEffect
The BGEffects.PerspectiveEffect animates background images of nested containers using differents speeds, which creates an illusion of perspective (aka parallax effect).
Hover the current element to start animation.
new BGEffects.PerspectiveEffect($('.perspectiveDemo'), { increment : 1, // Differential increment between layers loop : true // Loop animation forever! });
BGEffects.POVEffect
The BGEffects.POVEffect is an extension of BGEffects.PerspectiveEffect, which enables point of view through mouse position tracking. Move the mouse within the container to change animation direction and speed.
Hover the current element to start animation.
new BGEffects.POVEffect($('.povDemo'), { increment : 1, // Differential increment between layers loop : true // Loop animation forever! });