222
Views
3
Comments
How to trigger animation when a button is clicked
Question

Hi,

I have an animation :

it is working when the page is load the first time, but I dont want that.

I want to trigger the annimation when I click on a button.

is it possible please ?

2023-04-16 15-25-31
Krishnanand Pathak

Hi @you asen,

Create a local variable of boolean type e.g. ShowAnimation.
Then wrap the Animate widget with IF then put the animation in True branch and put the same content without Animate widget in False branch. As shown below.

Then at buttonOnclick assign the variable to True.

After that It will animate the content.

You can check the demo to see how it will work through below link.

https://personal-qmzjggmd.outsystemscloud.com/Font/Animation?_ts=638196158671501412

Oml is also attached for reference.

You can learn more about animation through below link

https://www.osquay.com/knowledge-center/how-to-easily-add-animations-in-outsystems

Regards

Krishnanand Pathak

Animate.oml
2022-07-03 17-24-08
Sourabh sharma

Hi @you asen 

Animation depend upon the requirement like when and how! like when data is loading !!

read Animate 

More

Hope this ll help you!!

kind regards

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.