Mouse Parallax
Did you like what you saw above?
If you liked this parallax effect using the mouse, it's pretty simple to use!
-
First, include the jQuery plug-in we provide.
-
Import the plug-in.
-
Create the markup structure
-
Import our CSS styles (for reference!)
-
Initialize the plug-in

- objectPercentage: optional, Integer. The value should go around 0 and 100. The higher the value, the less it will move. This percentage is the result of calculating the position of the image minus the end of the edges.
- backgroundPercentage: optional, Integer. As the objectPercentage, the value should go around 0 and 100. The higher the value, the less it will move. This percentage is the result of calculating the position of the image minus the end of the edges.
- WEBackground: html class/id container, name it as you wish. This will be the container of the parallax effect. The name can be whichever you want. Initialize the plug-in with this container.
- WEMouseParallax: html class, required. Include this object into your container, so the plug-in will know which to move.