You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|**speed**|`number`|| A value representing the elements scroll speed. If less than zero scroll will appear slower. If greater than zero scroll will appear faster. |
48
-
|**easing**|`string` or `number[]`|| String representing an [easing preset](#easing-presets) or array of params to supply to a [cubic bezier easing function](#cubic-bezier-easing-function). |
49
-
|**rootMargin**|`object`|| Margin to be applied as the bounds around an element. This will affect when an element is determined to be in the viewport. Example: `{ top: 100, right: 100, bottom: 100, left: 100 }`|
50
-
|**disabled**|`boolean`|`false`| Disables parallax effects on individual elements when `true`. |
51
-
|**shouldAlwaysCompleteAnimation**|`boolean`|`false`| Always start and end animations at the given effect values - if the element is positioned inside the view when scroll is at zero or ends in view at final scroll position, the initial and final positions are used to determine progress instead of the scroll view size. |
52
-
|**shouldDisableScalingTranslations**|`boolean`|`false`| Enable scaling translations - translate effects that cause the element to appear in the view longer must be scaled up so that animation doesn't end early. |
53
-
|**startScroll**|`number`|| Scroll top value to begin the animation. When provided along with `endScroll` relative scroll values will be ignored. |
54
-
|**endScroll**|`number`|| Scroll top value to end the animation. When provided along with `startScroll` relative scroll values will be ignored. |
55
-
|**targetElement**|`HTMLElement`|| Provides an element to track and determine the scroll progress. Use when scroll progress should be independent of parallax element's original position. See [storybook for example]https://react-scroll-parallax-v3.surge.sh/?path=/story/components-parallax-vertical-scroll--with-defined-target-element).|
|**speed**|`number`|| A value representing the elements scroll speed. If less than zero scroll will appear slower. If greater than zero scroll will appear faster. |
48
+
|**easing**|`string` or `number[]`|| String representing an [easing preset](#easing-presets) or array of params to supply to a [cubic bezier easing function](#cubic-bezier-easing-function). |
49
+
|**rootMargin**|`object`|| Margin to be applied as the bounds around an element. This will affect when an element is determined to be in the viewport. Example: `{ top: 100, right: 100, bottom: 100, left: 100 }`|
50
+
|**disabled**|`boolean`|`false`| Disables parallax effects on individual elements when `true`. |
51
+
|**shouldAlwaysCompleteAnimation**|`boolean`|`false`| Always start and end animations at the given effect values - if the element is positioned inside the view when scroll is at zero or ends in view at final scroll position, the initial and final positions are used to determine progress instead of the scroll view size. |
52
+
|**shouldDisableScalingTranslations**|`boolean`|`false`| Enable scaling translations - translate effects that cause the element to appear in the view longer must be scaled up so that animation doesn't end early. |
53
+
|**startScroll**|`number`|| Scroll top value to begin the animation. When provided along with `endScroll` relative scroll values will be ignored. |
54
+
|**endScroll**|`number`|| Scroll top value to end the animation. When provided along with `startScroll` relative scroll values will be ignored. |
55
+
|**targetElement**|`HTMLElement`|| Provides an element to track and determine the scroll progress. Use when scroll progress should be independent of parallax element's original position. See [storybook for example](https://react-scroll-parallax-v3.surge.sh/?path=/story/components-parallax-vertical-scroll--with-defined-target-element). |
0 commit comments