Prev
Next

G4S: "How it Works" Animation

Cross-device HTML5 story-style animation

Overview

I worked with Skylark Creative (opens new window) to build a cross-device story-style animation in HTML5, to show how G4S’s cash collection service represents good value for money for the small business.

The story illustrates the journey of a cash bundle, from the customer’s till, then safe-and-secure to the G4S depot, and finally the digital step to their bank account.

Implementation

“Look Ma, no Flash!”

The animation was built entirely in HTML5 and JavaScript powered by GreenSock’s TimelineMax, and a custom framework I developed over a few weeks called GreenSock Scene Manager, which mirrors the Flash authoring environment with named scenes, layers, sprites, etc.

The purpose of the framework was to provide an easy way to setup and manage the many on-screen elements within the JavaScript code, and reuse elements across scenes without having redundant duplication.

Along with this, I developed a fairly robust visual GSAP Controller element, which can be included in any GSAP animation just by including the script on the page.

The final animation took much longer to set up that I could have imagined before tackling this kind of project, unfortunately, ultimately taking weeks not days. A lot of time was spent getting to know the GSAP framework, along with some (though very few!) of its idiosyncrasies, and leveraging the power within. however, once the overall code structure and numerous refactorings (7 at the last count) had taken place, things really started to flow!

Around the physical animation was structured the rest of the functionality, including the navigational elements, informational elements, and popovers, all responsive, of course.

The final animation:

Technical elements:

So...

I hope you found this post interesting or inspiring.

If you want to engage further, follow me on Twitter or drop a comment or reaction below.

Either way, thanks for reading!