@@ -82,13 +82,13 @@ In addition to these properties, all other standard React properites like `class
82
82
` key ` , etc. can be passed in as well and will be applied to the ` <div> ` that will
83
83
be rendered by the ` ScrollTrigger ` .
84
84
85
- * ` component ` - Node (Default: ` div ` )
86
- * ` throttleResize ` - Number (Default: ` 100 ` )
87
- * ` throttleScroll ` - Number (Default: ` 100 ` )
88
- * ` triggerOnLoad ` - Boolean (Default: ` true ` )
89
- * ` onEnter ` - Callback ` ({progress, velocity}, ref) => {} `
90
- * ` onExit ` - Callback ` ({progress, velocity}, ref) => {} `
91
- * ` onProgress ` - Callback ` ({progress, velocity}, ref) => {} `
85
+ * ` component:Element | String ` - React component or HTMLElement to render as the wrapper for the ` ScrollTrigger ` (Default: ` div ` )
86
+ * ` throttleResize:Number ` - Delay to throttle ` resize ` calls in milliseconds (Default: ` 100 ` )
87
+ * ` throttleScroll:Number ` - Delay to throttle ` scroll ` calls in milliseconds (Default: ` 100 ` )
88
+ * ` triggerOnLoad:Boolean ` - Whether or not to trigger the ` onEnter ` callback on mount (Default: ` true ` )
89
+ * ` onEnter:Function ` - Called when the component enters the viewport ` ({progress, velocity}, ref) => {} `
90
+ * ` onExit:Function ` - Called when the component exits the viewport ` ({progress, velocity}, ref) => {} `
91
+ * ` onProgress:Function ` - Called while the component progresses through the viewport ` ({progress, velocity}, ref) => {} `
92
92
93
93
## License
94
94
0 commit comments