Coder Social home page Coder Social logo

hbehrens / memfault_logo_anim Goto Github PK

View Code? Open in Web Editor NEW
3.0 2.0 0.0 25 KB

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

Home Page: https://HBehrens.github.io/memfault_logo_anim/

License: MIT License

HTML 100.00%
svg css animation mad

memfault_logo_anim's Introduction

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

memfault_logo_anim's People

Contributors

hbehrens avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.