# Spotlight on Speech Codes 2015 Animated Web Infographic

- Link: https://cagrimmett.com/2015/01/01/spotlight/
- Published: 2015-01-01T05:00:00-05:00
- Author: Chuck Grimmett

I took a static infographic made by a client in Illustrator and applied some web
magic to make it animated and interactive. Along the way I developed stronger JavaScript,
jQuery, and CSS animation skills.

_Note: I made this for a client of [eResources](http://eresources.com), my current
employer._

### Project and Challenges:

 * A client came to us with a pre-designed infographic made in Illustrator. They
   wanted it to be interactive, sharable, and viewable on the web.
 * We had a limited number of hours we could use. This didn’t include enough time
   for making the infographic fully responsive, so we needed to get creative with
   how it would work on mobile.

### What I learned:

 * Structuring code in a clean, readable way
 * Pre-development sketching of outlines
 * CSS animation with keyframes
 * Nuances of layering containers and using selectors in CSS.
 * Giving content sections a parallax effect
 * Positioning elements by the page’s scroll position
 * jQuery for clicking and toggling actions
 * Open Graph and Twitter Card metadata
 * Making custom share URLs with encoded pre-populated data
 * Using Javascript to check User Agents to determine whether or not Skrollr should
   fire (it doesn’t play well with iOS)

[View the finished product in action! →](http://thefire.org/spotlight2015)

### Third-party tools used

 * [Skrollr](https://prinzhorn.github.io/skrollr/) to drive parallax and positioning
   elements by the page’s scroll position
 * [Wow.js](http://mynameismatthieu.com/WOW/) for triggering CSS animations
 * [Animate.css](https://daneden.github.io/animate.css/) so I didn’t have to write
   all of the CSS animations from scratch
 * [Chart.js](http://www.chartjs.org) for rendering the pie charts and making them
   interactive
 * [jQuery](http://jquery.com) for clicking and toggling actions

### In-Progress Photos

I first sketched the infographic out on an [IKEA drawing paper roll](http://www.ikea.com/us/en/catalog/products/80324072/)
to plan out where elements should go and how to structure the code overall.

![Sketching it out](/img/spotlight/1.jpg)

As I wrote the code, I previewed and tested it in real-time with [Coda’s AirPreview](https://panic.com/coda/).

![Live Preview](/img/spotlight/2.jpg)

[View the finished product in action! →](http://thefire.org/spotlight2015)

Original image:

![Spotlight 2015 Static Image](/img/spotlight/spotlight2015_static.png)

## Comments

### By: Chuck Grimmett

- Link: https://twitter.com/cagrimmett/status/1595858480899964928
- Published: 2022-11-24T14:14:46-05:00

2015: An interactive infographic. [cagrimmett.com/data-viz/2015/…](https://cagrimmett.com/data-viz/2015/01/01/spotlight/)

2016: Inflation graphs for Thanksgiving dinner prices [cagrimmett.com/data-viz/2016/…](https://cagrimmett.com/data-viz/2016/11/24/our-inflated-thanksgiving/)

2017: Opioid crisis data viz: [cagrimmett.com/til/2017/11/26…](https://cagrimmett.com/til/2017/11/26/d3-nest/)

Loading...

### By: Week of November 21

- Link: https://cagrimmett.com/week-of/2022/11/27/week-of-november-21/
- Published: 2023-01-28T22:47:40-05:00

This Article was mentioned on [cagrimmett.com](https://cagrimmett.com/week-of/2022/11/27/week-of-november-21/)

Loading...
