Just like those ancient Flash widgets that moved elements around the page based on the cursor's position, so this plugin works.
It sniffs the user's mouse cursor and changes the background image's position so it moves opposite the mouse's movement direction.
The effect is best used with small position adjustments, mimicking parallax 3D effects, adding an illusion of interactivity to the page without actually moving actual HTML elements, but merely the background image. All page elements will stay in their current position, and only the background will move.
Since there's no mouse cursor on mobile devices, Interactive BG switches to the device's accelerometer instead, moving the background around based on that.
A working Interactive BG demo is included with the download package.
Requirements:
- JavaScript enabled on client side
- jQuery
Comments not found