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
For example, say I had a container that was 300vh tall, and as the user scrolled through that element, I want various other fixed position elements to animate. I can't have these fixed elements animate based on their scroll positions for obvious reasons, so I need to attach the listener to another DOM element. The PLX animation library for React does this with a start property that allows you to tell the library which element to pay attention to in which to base the driver on. Maybe this is included in the library already (in fact, it seems like it must be), but after reading through the docs, I can't see any way to accomplish this. It seems to be done using the elements property, but the docs don't really go into any depth surrounding that, and I don't understand how that property is expected to be used.
For example, say I had a container that was
300vh
tall, and as the user scrolled through that element, I want various otherfixed
position elements to animate. I can't have these fixed elements animate based on their scroll positions for obvious reasons, so I need to attach the listener to another DOM element. The PLX animation library for React does this with astart
property that allows you to tell the library which element to pay attention to in which to base the driver on. Maybe this is included in the library already (in fact, it seems like it must be), but after reading through the docs, I can't see any way to accomplish this. It seems to be done using theelements
property, but the docs don't really go into any depth surrounding that, and I don't understand how that property is expected to be used.This is the general idea that's used in PLX:
The text was updated successfully, but these errors were encountered: