Animation doesn't stay at the last frame


#1

Hi all, I’m making an Ionic 2 app and I’m stuck with one slight problem.

I have list of items, when I click on item I go to single item page, and animation with transition ‘void =>*’ starts playing on this single page.

Also I want to animate something like fading out, so I’ve made some timeout function on clicking ‘back button’ in order to play fading out animation (opacity goes from 1 to 0) before nav-controller starts working.

BUT when fading animation finishes, opacity immediately turns back from 0 to 1. How can I make elements stay with opacity at 0?


#2

Just figured out that I need to declare state with opacity 0. How can I delete the topic?