# Is there a way to toggle animations in Widget Blueprints?

**URL:** <https://forums.unrealengine.com/t/is-there-a-way-to-toggle-animations-in-widget-blueprints/485499>\
**Category:** UI\
**Tags:** fade-in, unreal-engine, Widget, question\
**Created:** [June 30, 2021, 12:56pm UTC](https://forums.unrealengine.com/t/is-there-a-way-to-toggle-animations-in-widget-blueprints/485499 "2021-06-30T12:56:24Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dr\_Ninator](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Dr\_Ninator](https://forums.unrealengine.com/u/Dr_Ninator)\
**Post date:** [June 30, 2021, 12:56pm UTC](https://forums.unrealengine.com/t/is-there-a-way-to-toggle-animations-in-widget-blueprints/485499/1 "2021-06-30T12:56:24Z")

</div>

So when I press the shift key a stamina progress bar should fade in and when I release the key it should fade out. My question is if there is a way to toggle the animation so that it is reverse and fades out seamlessly, when you stop pressing the key

Thanks to everyone who responds

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [June 30, 2021, 1:23pm UTC](https://forums.unrealengine.com/t/is-there-a-way-to-toggle-animations-in-widget-blueprints/485499/2 "2021-06-30T13:23:48Z")

</div>

This should work:

 ![342819-screenshot-1.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/c/f/2cfc89d1c6cc1d5b4c5c2181aab59f18001f7fdb.png)

You just need to provide Play Mode - the Forward / Reverse.

---

<div class="post-metadata">

**Author:** ![Dr\_Ninator](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Dr\_Ninator](https://forums.unrealengine.com/u/Dr_Ninator)\
**Post date:** [July 1, 2021, 1:49pm UTC](https://forums.unrealengine.com/t/is-there-a-way-to-toggle-animations-in-widget-blueprints/485499/3 "2021-07-01T13:49:30Z")

</div>

That was exactly what I was looking for thanks!
