Loading repository data…
Loading repository data…
enesser / repository
An animated sci-fi SVG scene demo using GreenSock, heavily inspired by Blade Runner.

I’ve seen things you people wouldn’t believe. Attack ships on fire off the shoulder of Orion. I watched c-beams glitter in the dark near the Tannhäuser Gate. All those moments will be lost in time, like tears in rain. Time to die. — Blade Runner
An animated sci-fi SVG scene demo using GreenSock heavily inspired by Blade Runner.
Visit the live demo on CodePen: https://codepen.io/enesser/full/BZQWBo/
I created this demo to get developers and designers excited about SVG animations at Designory.
SVGs:
<desc/> for accessibilityThe blimp’s display will rotate on demand if you click the blimp. This is meant to demonstrate that SVG elements can be interactive.
The following is a breakdown of all of the animations in the scene.
opacity using staggerFrom with Power1.easeIn easingx, each on their own timelinex and y, occasionally changing scale to appear near or faropacity and scale using staggerFrom<filter/> and SMIL <animation/>display property
opacity using fromTostaggerFromopacity using fromThe most complex timeline in the scene is the car, and it was meant to demonstrate how to construct a complex animation by showing a car stopping at a traffic light, a traffic light changing from red to green, and the car resuming with its sirens on when the light changes.
If you are new to GreenSock, note that when you have multiple elements in a collection, to or from will animate them all at the same time, whereas staggerTo and staggerFrom will stagger the animation for each element so that they are spaced out from each other.
Staggering is used extensively for the animation of lights so they appear to twinkle in sequence.
GreenSock's Ease Visualizer can be a tremendous help when designing animation eases.
Special thanks:
Copyright (c) 2017-2018 Eric J Nesser MIT
opacity using tofill using tox and changes scale using Power3.easeOut to appear rubbery as it moves in a poor man’s attempt to follow the Principles of Animationlinear-gradient animated with @keyframes