Plugin for changing the background-position of elements related to the users scrolling. If if finds a way to animate the background-position it will use .animate() over .css().
-
startA
functionthat returns abooleanwhich represents if the parallax should be active or not. First parameter is the element and the second is an.offset()object. Both start and stop needs to return true for the paralax to animate. -
stopA
functionthat returns abooleanwhich represents if the parallax should be active or not. First parameter is the element and the second is an.offset()object. Both start and stop needs to return true for the paralax to animate. -
xCoeffThe multiplyer for the horizontal parallax
-
yCoeffThe multiplyer for the vertical parallax effect
-
xOffsetThe horizontal offset (in pixels without unit)
-
yOffsetThe vertical offset (in pixels without unit)
-
xUnitThe unit that should be used when setting the horizontal background position
-
yUnitThe unit that should be used when setting the vertical background position
-
xMinValueEither
falseor the lowest allowed value (in pixels without unit) for the horizontal background position -
yMinValueEither
falseor the lowest allowed value (in pixels without unit) for the vertical background position