Skip to content

Latest commit

 

History

History

iconpopups

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Icon Popups

This codelab will teach you how to use the Web Animations API to enhance a popup containing icons, with an effect inspired by Android's homescreen folders. You'll use animations, groups and learn about playback rate.

The final version will run on both desktop and mobile, in all modern browsers. Check out this preview-

Preview

Introduction

Before we start, let's perform some introduction steps.

Get the sample site

You'll need to get a copy of the source code - for more information, head to the GitHub repository. In this codelab, we'll just use the iconpopups folder.

Open the sample site

Take a look at the popup we're going to enhance, by opening the iconpopups/start/index.html file. This just has a few icons, each of which can be clicked to open a folder of further icons. This happens instantaneously, without any effect &emdash; this is most unexciting!

Our base site also has some boilerplate CSS and JavaScript to get us started. If you're curious about this boilerplate code, it lives in the iconpopups/shared folder. In this codelab, we won't modify it at all.

(optional) Open the final site

If you'd like to open the final version of the site to see what you'll be building, you can find the code in the iconpopups/final folder. It contains the entire codelab's work.

Next Step

Next, let's head on over to Step 1: Include Web Animations »