# Initial state on toggle

**URL:** <https://forum.lottiefiles.com/t/initial-state-on-toggle/2895>\
**Category:** Lottie Plugins\
**Created:** [June 1, 2022, 11:05am UTC](https://forum.lottiefiles.com/t/initial-state-on-toggle/2895 "2022-06-01T11:05:57Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![fdusautoir](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.lottiefiles.com/fdusautoir/32/2062_2.png) [@fdusautoir](https://forum.lottiefiles.com/u/fdusautoir)\
**Post date:** [June 1, 2022, 11:05am UTC](https://forum.lottiefiles.com/t/initial-state-on-toggle/2895/1 "2022-06-01T11:05:57Z")

</div>

Hi there,

I have my lottie interactivity set on toggle click. That works like a charm.  
I just want to change the initial state of my animation from start to end.

```auto
this.$refs.lottie.addEventListener('load', function() {

	var lottie = create({
		mode: 'cursor',
		player: '#lottie',
		actions: [
			{
				type: "toggle",
			},
		],
	});

})

```

How can I achieve that ?

---

<div class="post-metadata">

**Author:** ![joan](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.lottiefiles.com/joan/32/2816_2.png) [@joan](https://forum.lottiefiles.com/u/joan)\
**Post date:** [June 21, 2024, 9:23am UTC](https://forum.lottiefiles.com/t/initial-state-on-toggle/2895/2 "2024-06-21T09:23:59Z")

</div>

Hi, do you resolve this issue? I have the same problem. I just want to change the initial state of my animation from start to end in some cases. I also have my lottie interactivity set on toggle click. Any idea?
