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 ...

Get Foundation HTML5 Animation with JavaScript now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.