# Trigger Animation State

**URL:** <https://forum.lottiefiles.com/t/trigger-animation-state/1295>\
**Category:** Lottie in Web\
**Created:** [August 2, 2021, 8:28am UTC](https://forum.lottiefiles.com/t/trigger-animation-state/1295 "2021-08-02T08:28:58Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![marc.sen](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.lottiefiles.com/marc.sen/32/224_2.png) [@marc.sen](https://forum.lottiefiles.com/u/marc.sen)\
**Post date:** [August 2, 2021, 8:28am UTC](https://forum.lottiefiles.com/t/trigger-animation-state/1295/1 "2021-08-02T08:28:58Z")

</div>

Hey guys

I’d like to trigger different events in a lottie / json file which is embedded on a website, the animation has 5 states, defined by 5 keyframes. Is this possible?

I hope you understand what I mean.

Thanks in advance

Best,

Marc

---

<div class="post-metadata">

**Author:** ![irbypace](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.lottiefiles.com/irbypace/32/3165_2.png) [@irbypace](https://forum.lottiefiles.com/u/irbypace)\
**Post date:** [August 2, 2021, 6:35pm UTC](https://forum.lottiefiles.com/t/trigger-animation-state/1295/2 "2021-08-02T18:35:25Z")

</div>

Marc,

I hope these links help:

> **[Triggering Individual Animations on a Timeline with Lottie-web | Viget](https://www.viget.com/articles/triggering-individual-animations-on-a-timeline-with-lottie-web/)**
>
> See how we used Lottie-web.js to bring After Effects animations into the browser.

[![](https://canada1.discourse-cdn.com/flex030/uploads/lottiefiles/original/1X/ffd02eb4b7bfd21327ceb3d9b32949991ef7a941.jpeg "How to trigger an animation on click — After Effects & Lottie in Webflow") ](https://www.youtube.com/watch?v=d0OB4pLe_2Q)

> **[Animating with Lottie | CSS-Tricks](https://css-tricks.com/animating-with-lottie/)**
>
> I believe animation on the web is not only fun, but engaging in such a way that it has converted site visitors into customers. Think of the “Like” button on

> **[Controlling Lottie Animation with Markers - Swift Senpai](https://swiftsenpai.com/development/lottie-animation-markers/)**
>
> In this article, let's talk about what are markers in Lottie for iOS, why it is so useful and how to create an animated Twitter like button using markers.
