---
title: "Squash Sphere"
url: "https://sanyam.sh/lab/squash-sphere"
date: "2026-11-14"
---

# Squash Sphere

Drag the ball or scroll sideways. Spin it fast.

a ball of dots you spin by dragging or scrolling sideways, which flattens at the poles the faster it turns and springs back round as it slows.

key insight: the squash reads how far the ball actually turned each frame rather than which input turned it, so a drag, a throw, a swipe and a key all squash it the same way, on a spring that overshoots a little on the way back.

after the post ring on the cruitical landing page, moved onto a sphere, where a spinning body really does widen at its equator.

- Source: https://github.com/SanyamPunia/www/blob/main/components/labs/squash-sphere/index.tsx
