Skip to content

Trigger animation when playState changes from "paused" to "running" - stacked component #27

@d-fal

Description

@d-fal

I want to trigger a ZoomOutDown to a component when a button fires. When I change the playState from "paused" to "running", nothing happens. Can you help how to do this?

` 

  <Animate
    duration="1s"
    iterationCount={100}
    playState={animateState}
    delay="1s"
    Animation={[ZoomOutDown]}
  >
  <button
    onClick={(e) => {
      e.preventDefault();
      setAnimateState("running");
    }}
  >
    Click
  </button>
 </Animate>

`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions