Skip to content

performTransition

Arthur Guiot edited this page May 13, 2018 · 4 revisions

What is it?

This method will help you switch between View Controllers and animate this transition using CSS.

How to use it?

From any class or Groups, you can perform a transition using the following code:

const P = new ProType();
... // Your code
P.performTransition(to, { // to is a String representing a View name.
    animation: "none", // animation name in CSS
    duration: "1s", // duration of the animation
    Group: false // If you want to use a Group for performing a transition, give an Element.
}

Next: Groups

Clone this wiki locally