DEV Community

Cover image for Bongo Cat Codes #2 - Jamming! JS vs. CSS for animations
Caroline Artz
Caroline Artz

Posted on

Bongo Cat Codes #2 - Jamming! JS vs. CSS for animations

This is my codepen of Bongo Cat listening to some jams by animating SVG
with GSAP.

Variation with JavaScript (GSAP)

I previously did a version with CSS for animation. Comparing the two options, I prefer the JS approach -- much easier to update!

Variation with CSS

Top comments (3)

Collapse
 
robole profile image
Rob OLeary

New version looks awesome. Digging the colours! :-)

Collapse
 
abhigk profile image
Abhi

What the difference in the performance of animation with Javascript and CSS?

Collapse
 
makampos profile image
Matheus de Campos

GSAP Its awesome to make animations for web, oh my god!