July 2017
Intermediate to advanced
354 pages
9h 58m
English
A common behavior for the FAB button is to move out of the screen when the user scrolls down and reappears when the user scrolls up. Let's encode that behavior in our prototype:
# FAB BUTTON# Fab Buttons Statessketch.FAB_Button.states = stateIn: y: 1551 animationOptions: time: 0.2 stateOut: y: 1551+400 animationOptions: time: 0.2
To define this behavior, we have created two states for this button: one off the screen that we will call stateOut, and another inside the screen that we will call stateIn:

Now, we will add the behavior ...