A tutorial on applying Disney's 'squash and stretch' animation principle to SVG micro-interactions on the web. Covers implementing stretchy arrow icons using CSS path transitions and the Motion JavaScript library, with tips on spring physics easing and event-based (vs. state-based) hover interactions. Also includes a bouncing

12m read timeFrom joshwcomeau.com
Post cover image
Table of contents
Table of ContentsLink to this heading Stretchy arrowsLink to this heading Going deeperLink to this heading Bonus: bouncing ball playground
3 Comments

Sort: