Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases now! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Learning Material Design

You're reading from   Learning Material Design Master Material Design and create beautiful, animated interfaces for mobile and web applications

Arrow left icon
Product type Paperback
Published in Dec 2015
Publisher
ISBN-13 9781785289811
Length 186 pages
Edition 1st Edition
Languages
Tools
Concepts
Arrow right icon
Authors (2):
Arrow left icon
Nadir Belhaj Nadir Belhaj
Author Profile Icon Nadir Belhaj
Nadir Belhaj
Kyle Mew Kyle Mew
Author Profile Icon Kyle Mew
Kyle Mew
Arrow right icon
View More author details
Toc

Transitions and motion


One of Material Design's most appealing characteristics is the way elements move. Having content slide in and out of view allows us to manage data in a way that keeps the interface as uncomplicated as possible, while allowing users to access deeper content as and when they choose.

Wave animations

The wave effect is probably the most widely recognized material animation, and implementing it with Materialize could not be easier. In its simplest form, it looks like this:

<a class="btn waves-effect">OK</a>

The default implementation provides a gray ripple effect, but the framework provides seven other colors, plus a simple way to generate our own custom colors with CSS. The seven provided colors are:

waves-light
waves-red
waves-yellow
waves-orange
waves-purple
waves-green
waves-teal

They are implemented as shown here:

<a class="btn waves-effect waves-purple">OK</a>

These colors are fine for very many purposes, but creating our own custom waves is very simple...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime