Skip to content

feat: gelatin hook base - #29

Draft
felipe-software wants to merge 1 commit into
mainfrom
experimental/gelatin
Draft

feat: gelatin hook base#29
felipe-software wants to merge 1 commit into
mainfrom
experimental/gelatin

Conversation

@felipe-software

@felipe-software felipe-software commented Aug 9, 2026

Copy link
Copy Markdown
Owner

Add JellyPressable component with elastic deformation, radial glow, and gelatin hooks

  • Adds JellyPressable, a new pressable component with spring-driven press/drag deformation, radial touch glow, and accessibility actions (tap, long press); fires onPress only when touch hasn't moved beyond a slop and no long press has fired.
  • Adds useGelatin hook that computes elastic stretch transforms and transform origins via getGelatinTransform, driving a moving pivot and paired translations to simulate per-axis deformation.
  • Adds useTouchGlow hook for spring-animated radial glow, shared between useGelatin and the existing useDistortion hook.
  • Adds useWebOrigin and getLocalCoordinate to reliably convert absolute touch coordinates to view-local coordinates on web; refactors usePillJelly and JellyTabBarHeadless to consume this.
  • Adds GelatinConfig, GELATIN defaults, and resolveGelatinConfig to src/constants.ts, plus new Storybook stories, docs pages, and tests covering animation math, config merging, and component behavior.

Macroscope summarized dfd2ba1.

@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
oh-my-tabs dfd2ba1 Commit Preview URL

Branch Preview URL
Aug 09 2026, 03:24 PM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant