Skip to Content
UX Design for Mobile
book

UX Design for Mobile

by Pau Giner, Pablo Perea
July 2017
Intermediate to advanced
354 pages
9h 58m
English
Packt Publishing
Content preview from UX Design for Mobile

FAB button event reacting

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:

The FAB button has two states, inside of the screen (left) and out of the screen (right)

Now, we will add the behavior ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Practical UX Design

Practical UX Design

Scott Faranello
Designing UX: Forms

Designing UX: Forms

Jessica Enders
User Experience Design

User Experience Design

Satyam Kantamneni

Publisher Resources

ISBN: 9781787283428Supplemental Content