GsapPositionOptions: { filter?: Function; initialProps?: Iterable<string> }

Type declaration

  • Optionalfilter?: Function

    An optional filter function to adjust position data in onUpdate callbacks. This is useful if you need to transform any data from GSAP / plugins into data TJSPosition can utilize.

  • OptionalinitialProps?: Iterable<string>

    Provides an iterable list of property keys to assign to initial position data. This is useful when you are using GSAP plugins that manipulate data automatically; Ex. MotionPathPlugin