Skip to content

edgarberm/Parallax

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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'
} );

About

Parallax.js is a lightweight and simple mouse parallax effect.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published