Examples
note
Supposing you already provided the context and injected the Scene into your layout or anywhere you see it fits and also you got your modals styles ready, each of the following examples should display a modal.
Log In
The following example, we are using the pop up effect which is the default effect.
our modal component:
login button:
Sign Up
In the following example we are using the horizontal flipping (FLIP_X) effect.
Our sign up modal:
In the sign up button:
Notification
The following example, we are using the slide left effect with timeout set to 5 seconds. Meaning that it will close automaticaly after the given timeout, and the timer is reseted and paused when hovering over the notification modal. And also we are telling the modal to allow body scroll.
Our notification modal:
In the notification button: