MaestroThe UI design product. | Form Builder | 22.04 This feature was introduced in 22.04.
Maestro comes with the Page Controller (Avalon) component, which is a container for all application's pages, allowing form users to navigate them in a certain order as per a user onboarding flow. Page Controller (Avalon) only accepts the Page Groups (Avalon) and Pages (Avalon) components as they have additional properties. If you don't use the Avalon Template, you can use the Page Controller component.
Page transitions help form users understand where each page of a single-page application ends and another page begins, which greatly improve Maestro form accessibility.
Page transitions can be animated using CSS transitions or animations. By default, both the Maguire and Avalon templates provide two choices of transition:
Custom transitions can also easily be created using shared styles.
The following properties are available to the Page Controller component:
Boolean saveOnPageChange
Boolean restartAtLastSavedPage
Option focusMode
smart
. none
.The following styles are available to this component:
opacity
in this example), plus the .vstk-in
and .vstk-out
selectors, which define the opacity values:
@transition: opacity 0.5s ease-in-out;
form[name='form'] {
.page-fade-transition {
&[data-view-stack], &[view-stack], [data-view-stack], [view-stack] {
&.stack-active {
position: relative;
overflow-y: hidden;
}
& > * {
-webkit-transition: @transition;
-moz-transition: @transition;
-ms-transition: @transition;
-o-transition: @transition;
transition: @transition;
}
.vstk-in {
opacity: 1;
}
.vstk-out {
visibility: hidden;
opacity: 0;
transform: none;
}
transform
instead of the opacity
is shown below:
@transition: transform 0.7s ease-in-out;
form[name='form'] {
.page-slide-transition {
&[data-view-stack], &[view-stack], [data-view-stack], [view-stack] {
&.stack-active {
position: relative;
overflow-y: hidden;
}
& > * {
-webkit-transition: @transition;
-moz-transition: @transition;
-ms-transition: @transition;
-o-transition: @transition;
transition: @transition;
}
}
}
}
The 3 styles above are used for page transition effects, which is commonly used to enhance form accessibility. The transition happens where the leaving page completely disappears before the new page fades in. This is achieved by the standard CSS that uses the animation of the change in height between two pages, and controlling timing of the change.
You can edit the existing styles or you can even create your own shared style defining some other animation.
The styles use the view-stack directives, which are the vstk-
classes. Each page has some combinations of those classes at its top div
level
The main classes are listed below:
Next, learn about the Page component.