O'Reilly logo

Foundation HTML5 Animation with JavaScript by Billy Lamberta

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

images

Appendix

Useful Formulas

Throughout the book, there are various formulas related to the different motions and effects you’ve created. These have been distilled down to the most useful and most commonly used formulas, equations, and code snippets, and are listed at the end of each chapter. These have been collected here to serve as a one-shot reference for those things you’ll probably use the most.

Chapter 3

Calculate basic trigonometric functions
sine of angle = opposite / hypotenuse cosine of angle = adjacent / hypotenuse tangent of angle = opposite / adjacent
Convert radians to degrees and degrees to radians
radians = degrees * Math.PI ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required