<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/squash-and-stretch-josh-w-comeau-d4iqcrgyz" -->

---
title: Squash and Stretch • Josh W. Comeau | daily.dev
description: A tutorial on applying Disney's 'squash and stretch' animation principle to SVG micro-interactions on the web. Covers implementing stretchy arrow icons using...
canonical: https://daily.dev/posts/squash-and-stretch-josh-w-comeau-d4iqcrgyz
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Squash and Stretch • Josh W. Comeau | daily.dev
og:description: A tutorial on applying Disney's 'squash and stretch' animation principle to SVG micro-interactions on the web. Covers implementing stretchy arrow icons using...
og:url: https://daily.dev/posts/squash-and-stretch-josh-w-comeau-d4iqcrgyz
og:image: https://api.daily.dev/og/posts/D4IQcrgyZ.png
og:image:alt: Squash and Stretch • Josh W. Comeau
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Squash and Stretch • Josh W. Comeau

**[Josh W Comeau](https://daily.dev/sources/joshwcomeau)** · 12 min read · 41 upvotes · 3 comments

## Summary

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 ball playground demonstrating the same principle with CSS keyframes and custom properties.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://www.joshwcomeau.com/animation/squash-and-stretch/>

## Community discussion

Top comments from developers on daily.dev.

**@riccardogiuntini** · 1 upvotes

> gorgeous

**@byteoutlaw** · 1 upvotes

> Thanks, have signed up too see. Hope price will be affordable! ☺️

## Similar posts on daily.dev

- [A Squishy Button with a Hover/Click Effect](https://daily.dev/posts/a-squishy-button-with-a-hover-click-effect-3rgo6369d) · CSS Tip · 44 upvotes · 3 comments
- [How to animate SVG with CSS: Tutorial with examples](https://daily.dev/posts/how-to-animate-svg-with-css-tutorial-with-examples-wnvz9fnpb) · LogRocket · 4 upvotes · 0 comments
- [Sprites on the Web • Josh W. Comeau](https://daily.dev/posts/sprites-on-the-web-josh-w-comeau-5hibflbep) · Josh W Comeau · 63 upvotes · 6 comments
- [Last week in the studio \(CW15-26\)](https://daily.dev/posts/last-week-in-the-studio-cw15-26--m3bn9edsd) · Blogging and all that Malarkey · 7 upvotes · 0 comments

---

Tags: [#css](https://daily.dev/tags/css), [#svg](https://daily.dev/tags/svg)

[View this post on daily.dev](https://daily.dev/posts/squash-and-stretch-josh-w-comeau-d4iqcrgyz)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Squash and Stretch • Josh W. Comeau","url":"https://daily.dev/posts/squash-and-stretch-josh-w-comeau-d4iqcrgyz","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/squash-and-stretch-josh-w-comeau-d4iqcrgyz"},"datePublished":"2026-04-13T14:27:52.350Z","dateModified":"2026-04-13T14:28:21.335Z","description":"A tutorial on applying Disney's 'squash and stretch' animation principle to SVG micro-interactions on the web. Covers implementing stretchy arrow icons using...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/8857e1c3a9d4adcf2c43eb4682317381?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/8857e1c3a9d4adcf2c43eb4682317381?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Josh W Comeau","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Josh W Comeau","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/4a121572d03c40a2bff9e8ed0f0792b5","url":"https://daily.dev/sources/joshwcomeau"},"commentCount":3,"discussionUrl":"https://daily.dev/posts/squash-and-stretch-josh-w-comeau-d4iqcrgyz","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":41},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":3}],"keywords":"css,svg","timeRequired":"PT12M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Josh W Comeau","item":"https://daily.dev/sources/joshwcomeau"},{"@type":"ListItem","position":3,"name":"Squash and Stretch • Josh W. Comeau"}]}
{"@context":"https://schema.org","@type":"WebPage","@id":"https://daily.dev/posts/squash-and-stretch-josh-w-comeau-d4iqcrgyz","comment":[{"@type":"Comment","text":"gorgeous","datePublished":"2026-04-21T11:51:19.888Z","url":"https://daily.dev/posts/D4IQcrgyZ#c-n2HZHIbmu","author":{"@type":"Person","name":"Riccardo Giuntini","url":"https://daily.dev/riccardogiuntini","image":"https://lh3.googleusercontent.com/a/ACg8ocLWbI02tfj2zVbSPf3r4gkdLmyVZ9sJk2fdvhRM19ql7u_PTknU=s96-c"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":1}},{"@type":"Comment","text":"Thanks, have signed up too see. Hope price will be affordable! ☺️","datePublished":"2026-04-14T22:10:51.094Z","url":"https://daily.dev/posts/D4IQcrgyZ#c-oj4G8FOk1","author":{"@type":"Person","name":"Jacob B. Bonde","url":"https://daily.dev/byteoutlaw","image":"https://media.daily.dev/image/upload/s--veTChHK7--/f_auto/v1733220070/avatars/avatar_5cQvIZKr5tDFDotVDjulg"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":1}}]}
```

