Change div content with fade in and out animation, replace button with back function

Hello everyone, I’m new to coding and wappler however I’m currently working on a small project to test myself, I’ve come across something i think is interesting but i can’t seem to make it work

I’d like to change the contents of div1 to div2 contents onclick of a link with fade animation, with the contents of div2 id like the link to change text and function and take me back to contents of div1, with fade animation.

Anyone please I’m stuck.

Thank you.

You can animate (fade) elements on the page using the Animated Region component. Here’s an example of how to use it:

Thank you very much Teodor, this is exactly what I’ve been looking for. Thanks.