Murach's JavaScript and DOM Scripting
Animation with DOM scripting

This chapter shows you how to use DOM scripting to animate elements on a web page. That includes both 2-dimensional and 3-dimensional animations!

Chapter 18 Animation with DOM scripting
How to animate elements 634
A review of the math used in animation 634
How to change the position of an element over time 636
How to detect boundaries 640
How to simulate depth 642
The Carousel application 644
The image path in the carousel 644
The XHTML file 646
The CSS file 646
The carousel_library.js file 648
The carousel.js file 656

Murach's JavaScript and DOM Scripting

Learn more about this book

View the table of contents

More about the eBook

Our 100% Guarantee

First, try our books for 60 days. Then, if you aren't completely convinced that our books are the best ones you've ever used, you can return them for a prompt questions asked.