CSS Animation: De-animating the Undead Horde: Undead Institute
By John Rhea
()
About this ebook
Nothing takes down zombies like an HTML element on the move. This book takes a look at transitions, transformations and animations in CSS.
You'll learn how to trigger a simple transition and then how to create a longer, more complex movement or color change and more using keyframes, easing functions, delays, durations and much more.
You'll also keep your page running smoothly by learning the most performant ways to animate your page with transformations.
But what if you have a client with a sensitivity to motion or someone who would simply prefer no or very little motion? Well we can meet those concerns with the prefers-reduced-motion media query.
Best of all we'll take a look at the tried and true twelve principle of animation as set out by some legendary Disney animators. We'll apply those principles to the web, looking both at how those principles might apply to character animation on the web, but also how they apply to UI animation.
So take those static zombie poking sites and turn them into zombie smacking tanks of human ingenuity.
How You'll Learn to Smack Zombies Around
You won't just passively take in the view, like a zombie shuffling across the mainland. You'll have plenty of combat practice with analogies, examples, and code tutorials you can build, break and fix again. Working with your hands and your head you'll craft code that pleases the eye and knocks a zombie into last Tuesday.
All the code and directions are provided as both codepen tutorials and downloadable html files, so you can fight the apocalypse how and where you like. You can work with them on the codepen site or on your own device.
And later you'll bring those skills together in a final project that cements those skills into zombie smashing muscle memory.
Why Zombies?
Are zombies just a gimmick? Why would this be any better than a straight laced book that sticks to the facts?
Straight laced books are often straight boring. And if you have insomnia problems go buy that book. The author, John, has read the boring books and knows that staying awake and engaged are also important for learning. But this book uses zombie references and analogies not just to make you smile, but to help the material stick. If a tough technical concept is related in silly terms you understand, like a zombie trying to buy gum at a super market, it's much more likely to stay in that brain those zombies are intent on eating.
Read more from John Rhea
101 Terrible Zombie Jokes: Plus 13 That Might Actually be Funny Rating: 5 out of 5 stars5/5
Related to CSS Animation
Titles in the series (22)
Build Your First Website (And Thwack Zombies with HTML and CSS): Undead Institute, #0 Rating: 0 out of 5 stars0 ratingsFurther Expand Your First Website: Undead Institute, #1.3 Rating: 0 out of 5 stars0 ratingsAn Introduction to Programming in JavaScript: Stomping Zombies with Variables, Loops, Functions and More: Undead Institute, #10 Rating: 0 out of 5 stars0 ratingsExpand Your First Website: Thwacking Zombies With HTML & CSS Again: Undead Institute, #1.2 Rating: 0 out of 5 stars0 ratingsPFC Wiggins's Unofficial Commissary: An Undead Institute HTML & CSS Workbook: Undead Institute, #6.5 Rating: 0 out of 5 stars0 ratingsModern CSS Layout: Decking Zombies with Style: Undead Institute, #9 Rating: 0 out of 5 stars0 ratingsSearch Engine Optimization: How to Make your Site Stand Out from the Apocalyptic Horde: Undead Institute, #13 Rating: 0 out of 5 stars0 ratingsScalable Vector Graphics: How to Draw Zombie-Smashing Images with Code: Undead Institute, #17 Rating: 0 out of 5 stars0 ratingsIntermediate CSS: Zombie in a Cocktail Dress: Undead Institute Rating: 0 out of 5 stars0 ratingsHTML Forms & Interactive Elements: Or How to Poke a Zombie in the Eye: Undead Institute Rating: 0 out of 5 stars0 ratingsA Beginner’s Guide to Learning HTML (and Smacking Zombies Upside the Web Development): Undead Institute Rating: 0 out of 5 stars0 ratingsAn Introduction to Website Performance: How to Outrun the Zombie Hordes: Undead Institute, #15 Rating: 0 out of 5 stars0 ratingsAn Introduction to Programming in PHP: Stomping Zombies with Variables, Loops, Functions and More: Undead Institute, #14 Rating: 0 out of 5 stars0 ratingsBeginner CSS: Like Putting Lipstick on a Zombie: Undead Institute Rating: 0 out of 5 stars0 ratingsCSS Animation: De-animating the Undead Horde: Undead Institute Rating: 0 out of 5 stars0 ratingsResponsive Design: An Undead Introduction to Mobile Web Development: Undead Institute Rating: 0 out of 5 stars0 ratingsBeginner Usability: A Novice's Guide to Zombie Proofing Your Website: Undead Institute Rating: 0 out of 5 stars0 ratingsMore Advanced CSS: Zombie in a Ballgown: Undead Institute Rating: 0 out of 5 stars0 ratingsHumanity's Second Chance: Interactive HTML, Intermediate CSS and Responsive Design (Virtual Boxed Set): Undead Institute Rating: 0 out of 5 stars0 ratingsMy First Webpocalypse: Beginner HTML, CSS, and Usability (Virtual Boxed Set): Undead Institute Rating: 0 out of 5 stars0 ratingsJavaScript Basics: Flinging Event, Element, and Object Bombs at Zombie Heads: Undead Institute Rating: 0 out of 5 stars0 ratingsThe Apocalyptic HTML Arsenal: An Undead Institute HTML Reference Dictionary: Undead Institute Rating: 0 out of 5 stars0 ratings
Related ebooks
My First Webpocalypse: Beginner HTML, CSS, and Usability (Virtual Boxed Set): Undead Institute Rating: 0 out of 5 stars0 ratingsJavaScript Patterns JumpStart Guide (Clean up your JavaScript Code) Rating: 4 out of 5 stars4/5An Introduction to Programming in JavaScript: Stomping Zombies with Variables, Loops, Functions and More: Undead Institute, #10 Rating: 0 out of 5 stars0 ratingsA Pocket Guide to CSS Animations Rating: 5 out of 5 stars5/5Learning jQuery 3 - Fifth Edition Rating: 0 out of 5 stars0 ratingsIntermediate CSS: Zombie in a Cocktail Dress: Undead Institute Rating: 0 out of 5 stars0 ratingsThe Javascript Adventure Rating: 0 out of 5 stars0 ratingsInstant HTML5 2D Platformer Rating: 0 out of 5 stars0 ratings50 Recipes for Programming CSS3 Rating: 0 out of 5 stars0 ratingsTailwind CSS Rating: 0 out of 5 stars0 ratingsBeginner CSS: Like Putting Lipstick on a Zombie: Undead Institute Rating: 0 out of 5 stars0 ratingsJavaScript: Beginner's Guide to Programming Code with JavaScript Rating: 5 out of 5 stars5/5Modern CSS Layout: Decking Zombies with Style: Undead Institute, #9 Rating: 0 out of 5 stars0 ratingsJavascript Concepts: 1St Edition Rating: 0 out of 5 stars0 ratingsMore Advanced CSS: Zombie in a Ballgown: Undead Institute Rating: 0 out of 5 stars0 ratingsProfessional CSS3 Rating: 5 out of 5 stars5/5How JavaScript Works Rating: 0 out of 5 stars0 ratingsExploring 3D Modeling with CINEMA 4D R19: A Beginner’s Guide Rating: 0 out of 5 stars0 ratingsA Beginner’s Guide to Learning HTML (and Smacking Zombies Upside the Web Development): Undead Institute Rating: 0 out of 5 stars0 ratingsThe CSS Guide: The Complete Guide to Modern CSS Rating: 5 out of 5 stars5/5Responsive Design: An Undead Introduction to Mobile Web Development: Undead Institute Rating: 0 out of 5 stars0 ratingsLearning AngularJS Animations Rating: 4 out of 5 stars4/5Getting SASSY: A Practical Guide to SASS Rating: 0 out of 5 stars0 ratingsJavaScript Mobile Application Development Rating: 0 out of 5 stars0 ratingsLearning Bootstrap Rating: 1 out of 5 stars1/5Multi-Tier Application Programming with PHP: Practical Guide for Architects and Programmers Rating: 0 out of 5 stars0 ratingsHTML5 Canvas Cookbook Rating: 0 out of 5 stars0 ratingsMastering MeteorJS Application Development Rating: 4 out of 5 stars4/5
Internet & Web For You
No Place to Hide: Edward Snowden, the NSA, and the U.S. Surveillance State Rating: 4 out of 5 stars4/5How to Disappear and Live Off the Grid: A CIA Insider's Guide Rating: 0 out of 5 stars0 ratingsSocial Engineering: The Science of Human Hacking Rating: 3 out of 5 stars3/5Coding For Dummies Rating: 5 out of 5 stars5/5How to Be Invisible: Protect Your Home, Your Children, Your Assets, and Your Life Rating: 4 out of 5 stars4/5Everybody Lies: Big Data, New Data, and What the Internet Can Tell Us About Who We Really Are Rating: 4 out of 5 stars4/5Six Figure Blogging Blueprint Rating: 5 out of 5 stars5/5The Hacker Crackdown: Law and Disorder on the Electronic Frontier Rating: 4 out of 5 stars4/5The Beginner's Affiliate Marketing Blueprint Rating: 4 out of 5 stars4/5Grokking Algorithms: An illustrated guide for programmers and other curious people Rating: 4 out of 5 stars4/5The Gothic Novel Collection Rating: 5 out of 5 stars5/5Get Rich or Lie Trying: Ambition and Deceit in the New Influencer Economy Rating: 0 out of 5 stars0 ratingsCoding All-in-One For Dummies Rating: 4 out of 5 stars4/5200+ Ways to Protect Your Privacy: Simple Ways to Prevent Hacks and Protect Your Privacy--On and Offline Rating: 0 out of 5 stars0 ratingsPodcasting For Dummies Rating: 4 out of 5 stars4/5Hacking : The Ultimate Comprehensive Step-By-Step Guide to the Basics of Ethical Hacking Rating: 5 out of 5 stars5/5Remote/WebCam Notarization : Basic Understanding Rating: 3 out of 5 stars3/5Beginner's Guide To Starting An Etsy Print-On-Demand Shop Rating: 0 out of 5 stars0 ratingsMore Porn - Faster!: 50 Tips & Tools for Faster and More Efficient Porn Browsing Rating: 3 out of 5 stars3/5The Cyber Attack Survival Manual: Tools for Surviving Everything from Identity Theft to the Digital Apocalypse Rating: 0 out of 5 stars0 ratingsThe Digital Marketing Handbook: A Step-By-Step Guide to Creating Websites That Sell Rating: 5 out of 5 stars5/5The Logo Brainstorm Book: A Comprehensive Guide for Exploring Design Directions Rating: 4 out of 5 stars4/5The Internet Is Not What You Think It Is: A History, a Philosophy, a Warning Rating: 4 out of 5 stars4/5How To Start A Podcast Rating: 4 out of 5 stars4/5How to Destroy Surveillance Capitalism Rating: 4 out of 5 stars4/5Introduction to Internet Scams and Fraud: Credit Card Theft, Work-At-Home Scams and Lottery Scams Rating: 4 out of 5 stars4/5
Reviews for CSS Animation
0 ratings0 reviews
Book preview
CSS Animation - John Rhea
Four Word
Making Magic, Zombie Moves
Get a Free Zombie Animation CSS Cheat Sheet
Zombie CSS Cheat SheetWhen you sign up for Webpocalypse Weekly, our email newsletter. This printable cheat sheet covers animations, transitions and transformations. Reference your new CSS skills with your very own CSS Animation Cheatsheet
https://undd.link/animation
What is Animation and Why
Animation, for the purposes of this book, is the change of CSS declaration values over time—and/or punching a zombie in the corpus callosum. Just like the corpus callosum, animation bridges the gap between artistic and technical skills.
Animation can take many forms, from character animation to interface animation, from visual movement to color change. You can animate just about any CSS property that has a mathematical representation, but how fast or slow that happens or whether your ballistic elements go in a straight line or arc gracefully into the zombie horde is an art form unto itself.
The best web animations enhance a user’s experience of the website, rather than solely providing a cool
factor or pushing the technology. (I take that back. The very best animations do or build toward all three.) That said, if the addition of animation ever deteriorates the user experience or adds frustration, then you need to either remove it entirely or remove the deleterious effect. Even if it’s awesome, if it annoys users, it’s not worth including.
Necessary Zombie-Smacking Skills
This book assumes a rudimentary knowledge of HTML and CSS. If you don't have that yet, many wonderful, though zombie-less, tutorials are available online, or you can pick up a copy of A Beginners Guide to Learning HTML (or How to Smack a Zombie Upside the Web Development) and/or Beginner CSS: Like Putting Lipstick on a Zombie.
Roadmap to the Resistance
There are a few skills needed to build animations/stop those dead from being reanimated. We’ll look at transitions, transforms and keyframes before we get to the animations themselves. So if it feels like we’re taking a left turn into the urban wilds of zombie territory, don’t worry we’ll bring it all together by the end.
Transitioning to Zombiehood
The place to start in CSS animation is with transitions. A zombie infection transitions a property from one state (human) to a second state (zombie). In CSS, transitions can generally animate any mathematical value, such as a width or even a color.
The easiest way to start working with animations/transitions is to have a clear trigger for when the animation/transition starts and stops. When working on a desktop,