A Brief and Personal History of Animation Approaches I Love
Tags: animation, design, javascript, css
Published: 2020-02-19 03:17:16

---
title: A Brief and Personal History of Animation Approaches I Love
published: true
description: I think choosing whether or not you need another web animation library in your life is a little bit like dating. It’s awkward and hyper personal and a bit irrational.
tags: animation, design, javascript, css
---

I think choosing whether or not you need another web animation library in your life is a little bit like dating. It’s awkward and hyper personal and a bit irrational. And you might be really hesitant to do something new if it feels like you’ve already adapted your whole life to something like Greensock or plain CSS. 

As Bryan Braun’s [Bouncy Ball](https://sparkbox.github.io/bouncy-ball/) project demonstrates, there are at least 20 different ways to animate a two-dimensional blob on the web. And the funny thing to me isn’t how many options the project documents — but pretty much any single one can be used to move a blob in the exact same way. 

If the bouncy ball test parameters were different — if there were hundreds of moving blobs, each with its own independent velocity, and some form of randomness that contributed to entirely different motion paths for each individual ball — there might be a more clear winner.

More than likely, the winner would be canvas: because a website can get pretty dang slow when countless nodes that are a part of a DOM tree are moving in a million complex and continually-evolving ways. (And this is especially true for mobile users!)

But web performance aside, it’s not always so easy to delineate what does or doesn’t make sense for a creative project. Your mileage may vary, and you may hate the things that I love. 

So this is more or less just an abbreviated history of my personal experience with different approaches to web animation.

## [GreenSock](https://greensock.com/)
You always remember your first love, right? This one was mine. It’s commonly referred to as GSAP, and I discovered it the summer I quit my career in publishing and began dreaming of doing weirder, more creative things. 

The first weird, creative thing that I discovered built with it was definitely the homepage for [Mild Bunch](http://mildbun.ch/), a coworking space in Bristol, which seamlessly blends gifs into GreenSock-driven animations. 

If you’re patient and watch for it, you can catch several different events unfold: including a hot air balloon that drifts away, a flock of birds, a dog walker, a child on a scooter, and a cyclist. 

![Mild Bunch](https://dev-to-uploads.s3.amazonaws.com/i/ocw8kifccehfj0ddcxwf.png)

Carefully sequenced, animated timelines like this are often what GreenSock is known and loved for. It can also animate html elements along bezier motion paths; morph between disparate shapes; normalize browser quirks; and a swiss-army-knife oddity of other tasks.

## [d3](https://d3js.org/)
Learning d3 came next for me, and it initially made a lot of sense. It’s an open-source tool and ubiquitous to online data visualization. And after several years in print publishing, using it to pivot my career into more interactive forms of journalism felt like a somewhat happy accident. Like tripping on the sidewalk in a romcom and accidentally discovering your one true love. 

Except, d3 probably isn’t it for me. When I tried to learn it, I was still struggling with basic Javascript fundamentals. I couldn’t manage to do much without adding an additional charting library on top of d3. I’m also still not sure I enjoy charts as much as I just inherently feel like I should.

But d3 is a powerful thing that can definitely be used creatively — and an excellent example of that is [A Visual Introduction to Machine Learning](http://www.r2d3.us/visual-intro-to-machine-learning-part-1/). 

![Tony Chu's A Visual Introduction to Machine Learn Website](https://dev-to-uploads.s3.amazonaws.com/i/aa3dxq5rpkz2dzj1d69n.png)

If you’re interested in learning more about the interaction design theory behind it, Tony Chu gave a talk about the project at OpenVis Conf called [Animation, Pacing, and Exhibition](https://www.youtube.com/watch?v=Z4tB6qyxHJA).

## CSS
If I can carry on the whole weird theme of comparing romance to web animation without losing too many readers, how I feel about CSS animation is nothing short of intimate and intense best-friend love. The kind of love [embodied by Abbi and Illana on Broad City,](https://www.them.us/story/broad-city-finale-abbi-ilana) or even moreso by Amy and Molly of Booksmart —

Because this is a very nerdy kind of joy. And there’s something wildly pleasing about being able to draw or even hand-write simple svg shapes (or even just divs) and then animate them with css transforms. 

Lynn Fisher’s [A Single Div](https://a.singlediv.com/) project captures much of how silly and wonderful of a style it can feel, with only (as the name implies) a single div and a bit of CSS.


![Lynn Fisher's A Single Div Website](https://dev-to-uploads.s3.amazonaws.com/i/6c5wafnympjaff7gyf41.png)


##[Framer Motion](https://www.framer.com/motion/)
Sometimes you want to be challenged, and for me recently that’s involved learning Framer Motion. Which isn’t to say it’s difficult to use: the React animation library has a simple, declarative syntax that’s convenient for one-off animations and yet still flexible enough for more complex orchestration. 

I’ve been most excited the past few months about how simple it is use asynchronous callbacks from my own custom hooks — written with web platform APIs like [Intersection Observer](https://developer.mozilla.org/en-US/docs/Web/API/Intersection_Observer_API) — to affect the state and velocity of a scroll-based animation.

I’m also really excited to experiment with features that include gesture recognition and an accessibility-focused hook called [useReducedMotion](https://www.framer.com/api/motion/guide-accessibility/), and some of the more creative applications of spring and inertia-driven animation. 

Which is probably just to say, in the parlance of an old Hollywood talkie, if you’re a creative soul with a penchant for React, I think Framer Motion is nothing short of a fast-talking Bette Davis: a no-nonsense, dependable dame with impeccable wit.

## WebGL / Canvas / [three.js](https://threejs.org/)
I repeatedly ignored these approaches to animation for years before taking a class with Matt Deslaurier last fall on [AdvancedWebGL and Shaders](https://frontendmasters.com/teachers/matt-deslauriers/) at [Frontend Masters](https://frontendmasters.com/). Not necessarily because I didn’t think canvas or the 3d applications of Three.js were interesting. 

I was mostly just super intimidated. 

And I didn’t realize that it was possible to use everything I knew and loved about frontend web development and apply it to in-person, interactive installations — not until meeting Deslaurier and discovering he does just that with projects like [N Dimension](https://www.behance.net/gallery/66922959/N-Dimension). 

![Matt Deslaurier's N-Dimension](https://dev-to-uploads.s3.amazonaws.com/i/sa7xva0hk1naqs5chc6t.jpg)

I'm probably going to be in a very shy, staring-at-my-crush-from-behind-a-bush kind of love with this for a little bit, but I've always wanted to experiment with mixing generative design with interaction. 

So with any luck, this might just be the accountability I need to pursue it.