Creative Technology Monthly: Motion and Animation

Issue 02: Motion and Animation — December 2016

Motion and Animation 🚀

Motion and animation on the web is becoming more and more prolific. Animation is being used to create visual enhancements, like indicating state, to full-blown immersive experiences and browsers are finally capable of doing the amazing things that we’ve been dreaming of for years. There are hundreds of different ways to animate elements (CSS transitions, @keyframe animation, SVG, Canvas, WebGL, and probably a few more).

Animation on the web means different things to different people. To me, it is all about enhancing the user experience, sometimes for decoration but rarely. A great, and oft-used, example of UX-improving animation can be seen on Stripe’s payment form. As you can see below, there are three different examples of animation used in their tiny payment form. What I find particularly interesting is how errors are taken care of in more of a light-hearted manner rather than a splash of red text to indicate an invalid state.

If you want to discuss animation and learn from a great community, I highly recommend the Animation at work Slack community run by Rachel Nabors (@rachelnabors) who also runs Web Animation Weekly.

Insight: Brad Bird on Animation from Kees van Dijkhuizen Jr. on Vimeo.

Web animation libraries and tools

There are many libraries to help you do so this animation, it is hard to know where to start, so I have given a shortlist below.

GSAP (external site) — Greensock Animation Platform

This library has been the big daddy for animation on the web for years. From its roots in Flash & now HTML5/Javascript — if you’re serious about animating for the web, GSAP is what you need. There are too many features to mention, but suffice it to say, it is the most robust, compatible and capable library around.

Animate.css (external site) — Just-add-water CSS animations

Animate.css is a bunch of cool, fun, and cross-browser animations for you to use in your projects. Great for emphasis, home pages, sliders, and general just-add-water-awesomeness. The project is developed by Daniel Eden and is open-source; and there is also a Sass port too. 👍

Mo.js (external site) — motion graphics toolbelt for the web

Mo.js is a JavaScript library devoted to motion for the web developed by Oleg Solomoka (external site) (@legomushroom). It offers a declarative syntax motion and the creation of elements for animation. Browser support is great, there’s a wealth of demos (external site) and tutorials (external site) to help you get started. You can even create custom builds of the library so you can reduce file size overheads in your project 👍. If you need a bit more of a deep-dive into mo.js, Sarah Drasner published an intro (external site) to the library on CSS-Tricks recently.

Anime.js (external site) — JavaScript animation engine

Anime is a flexible, yet lightweight JavaScript animation library developed by Julian Garnier (@juliangarnier). It works with CSS, Individual Transforms, SVG, DOM attributes and JS Objects. The project is open-source, is actively developed and there are many examples in the project’s readme (external site) and on Codepen (external site).


🔥 Showcase



🎄 Advent calendars

24 Ways (external site), the Web Performance Calendar (external site), UXMas (external site) and the Advent of Code (external site) are all back for another year. If you have some spare time over the Holiday period, I urge you to give them a try.


⚒ Code


🖥 Apps


🌯 Tech Team Activity

🎉 The new TMW website (external site) has just been launched. I (Zander) and Lorena have been working on it for the past few months and we are extremely proud of it. Have a look and let us know what you think: tmwunlimited.com (external site).

🗣 I (Zander) gave a #brunchandlearn talk about now by zeit. If you haven’t heard about the service, now is a cloud-based hosting and deployment platform. They offer realtime deployments for Javascript-based apps, Docker containers and static sites and files. It is extremely easy to setup and every site is uses HTTPS & HTTP2 by default! If you’d like to learn what others think about zeit, Remy Sharp wrote an article about it a few days ago.


👋

If you have any comments or feedback, please let us know. If you have any suggestions for next month’s issue. Please send a tweet to @TMWInteractive (external site).