Parallax
The behavior whereby a component moves at a speed different from the scroll speed.
Declaration
object ParallaxProperties
| Name | Type | Description |
|---|---|---|
type Required | string | This behavior always has the type |
factor | number | The speed of the component, as a factor of the scroll speed. Use a value of factor between The parallax factor A factor lower than A factor higher than |
Mentioned in
Discussion
When you apply the Parallax behavior to a component, the component moves at a different speed than the scroll speed. Use the factor property to set the speed of the component. This video shows an example of the parallax behavior.
Example
{
"components": [
{
"role": "figure",
"behavior": {
"type": "parallax",
"factor": 0.8
},
"URL": "bundle://figure.jpg"
}
]
}