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 the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.