Skip to content

Memfault Logo as Animated SVG via CSS Variables and JS logic using GSAP

License

Notifications You must be signed in to change notification settings

HBehrens/memfault_logo_anim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Open in Gitpod

Animated Memfault Logo

Project for Memfault Awesome Day (MAD) project by @HBehrens. Renders the Memfault logo and provides some animations and interactions.

Animated Memfault Logo

Try it out now! This project was heavily inspired by Gitpod's former loading screen ❤️

How does it work

The logo is technically a 2D SVG with several nested groups each with individually configured CSS transforms. Careful placement of SVG clipping paths that are transformed in sync creates the desired effect.

JavaScript performs logic and drives value changes for various CSS variables using GreenSock. Various calc() expressions in the CSS will apply these variables leading to the visual effects without making any changes to SVG itself.

Fake perspective triggered by mouse movement

The example further responds to pointer events (touch or mouse) to give the illusion of a truly three-dimensional object.

Next Steps

About

Memfault Logo as Animated SVG via CSS Variables and JS logic using GSAP

Topics

Resources

License

Stars

Watchers

Forks

Languages