Animating independent layers
After a few really hard recipes let's do something fun and easy; let's add some animation to our chart and add some fade-ins and delays.
Getting ready
The core logic of our application was built in the previous two recipes Stacking graphical layers and Moving to an OPP perspective. We are in great shape so it will be extremely easy for us to expand and create content and add it into our application. We will make few very slight updates to our latest HTML file, mainly deleting things we don't need and then it's all JavaScript.
Grab the latest files from our last sample (06.02.objects.optimized.html
and 06.02.objects.optimized.js
) and let's continue.
How to do it...
Our goal in the next few steps is to remove the code that is not required and then build our layered animations. Perform the following steps:
Remove the HTML, CSS, and
<div>
tags that are not required (delete the highlighted code snippets):<!DOCTYPE html> <html> <head> <title...