Skip to content

<Timeline /> playState does not work when inside <Reveal /> #35

Open
@capi1O

Description

@capi1O

I can get to control <Timeline /> when placed inside a <Reveal />, I also try to pass playState prop on reveal itself since

The Reveal component is basically an Intersection Observer and a Timeline component combined.

source: https://bitworking.github.io/react-gsap/src-components-reveal

However playState is not a prop of Reveal so this does not work.

My use case is that I need to wait for all the elements of the animation to be ready before starting the animation.

As a workaround I am controlling the animation manually using a mutation observer.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions