Skip to content

Latest commit

 

History

History
27 lines (20 loc) · 559 Bytes

README.md

File metadata and controls

27 lines (20 loc) · 559 Bytes

Parallax

Parallax.js is a lightweight and simple mouse parallax effect. Simple to use and works with the mouse and reacts to the orientation of your smart device.

##Usage

<div class="parallax-container">
	<div class="parallax" data-power="6"></div>
	<div class="parallax" data-power="4"></div>
	<div class="parallax" data-power="2"></div>
</div>
var parallax = new Parallax( document.querySelector( '.parallax-container' ), {
	className: 'parallax',
	power: .1,
	axis: 'both',
	controls: 'mouse',
	scope: 'global'
} );