Prompt Motion
@AiMotionSiteS
Prompt library

UI motion

Interactive jelly calculator app with draggable physical behavior

Interactive jelly calculator app with draggable physical behavior is a 14-second Claude Opus motion design reference by @vib3coded, built around Physics, CSS. GOAL: Add to the "Jelly Calculator" page: the whole calculator is a physical object you can pick up by its case, drag around the page and… Copy this UI motion prompt, keep the creator's frame counts and palette, and adapt the subject for your own launch film.

@vib3codedView post

Prompt

GOAL: Add to the "Jelly Calculator" page: the whole calculator is a physical object you can pick up by its case, drag around the page and throw. MOTION: PICKING UP & DRAGGING - Pressing on the case (the candy-pink rim, the plate between the keys, the top strip with the model name and solar cells — anything that isn't a key or the LCD) picks the calculator up. Keys and the screen keep working as before. - It is a 2D rigid body on a "table": position, velocity, angle and angular velocity, inertia of a rectangle. - While held, the grabbed point is pulled toward the finger by a stiff damped spring applied at that point (stiffness ~800, damping ~50 per unit mass), so torque swings the calculator round to trail the finger. Angular motion is damped while held. - Lifted, it scales up ~3.5% and its shadow falls further and softer. - Render it with a CSS transform (translate + rotate + scale about its centre); the canvas becomes transparent outside the case (premultiplied alpha: only the soft shadow there), so it floats over the page's text and panels (raised z-index), and the page clips overflow so nothing scrolls sideways. - Pointer hit-testing inverts the transform, so keys work at any angle. THROWING - On release it leaves with the finger's velocity over the last ~100 ms (blended 75% finger / 25% body), plus a swish sound if fast. - Free, it slides on rubber feet: exponential plus constant (Coulomb) friction for both linear and angular speed, so it comes to a clean stop. - Speed is capped (~5000 px/s) and spin capped. - It bounces off the browser window's edges using the rotated rectangle's extents (restitution 0.5; almost none while held), and a glancing hit converts tangential speed into spin. THE JELLIES FEEL IT - Every frame, take the body's linear and angular acceleration into the calculator's own frame and apply it per key: lateral acceleration (plus angular acceleration × the key's distance and a little centripetal fling) pushes the jellies' shear springs the opposite way, and vertical acceleration pushes their squash springs. Pushes are clamped. - Accelerating makes them lag and lean; impacts make them splat and wobble. - On impacts: the LCD shakes, the little mascot jelly hops; a hard hit makes it dizzy with an "uh-oh"; a fast throw makes it gasp. SOUND (synthesised) - Lift: a plastic tock off the table plus a shiver of three tiny jelly bloops. - Moving: a continuous air swish whose level and brightness follow speed, a low rubber-feet hiss while it slides free, a whirr when spinning. - Impact (scaled by normal speed, throttled): a hollow plastic knock with resonances at ~620/1340/2750 Hz and an edge click, a wet squelch, and a few wobbling bloops on the digit notes; on hard hits a big wobbling "boing" of the whole tray. - A single tap on the case: a small plastic tick. PUTTING IT BACK - Double-tap the case, press Home, or click a "Put it back" button (shown only while it's away). - It flies home on a critically damped spring by the nearest way
Author original
Add to the "Jelly Calculator" page: the whole calculator is a physical object you can pick up by its case, drag around the page and throw. PICKING UP & DRAGGING - Pressing on the case (the candy-pink rim, the plate between the keys, the top strip with the model name and solar cells — anything that isn't a key or the LCD) picks the calculator up. Keys and the screen keep working as before. - It is a 2D rigid body on a "table": position, velocity, angle and angular velocity, inertia of a rectangle. - While held, the grabbed point is pulled toward the finger by a stiff damped spring applied at that point (stiffness ~800, damping ~50 per unit mass), so torque swings the calculator round to trail the finger. Angular motion is damped while held. - Lifted, it scales up ~3.5% and its shadow falls further and softer. - Render it with a CSS transform (translate + rotate + scale about its centre); the canvas becomes transparent outside the case (premultiplied alpha: only the soft shadow there), so it floats over the page's text and panels (raised z-index), and the page clips overflow so nothing scrolls sideways. - Pointer hit-testing inverts the transform, so keys work at any angle. THROWING - On release it leaves with the finger's velocity over the last ~100 ms (blended 75% finger / 25% body), plus a swish sound if fast. - Free, it slides on rubber feet: exponential plus constant (Coulomb) friction for both linear and angular speed, so it comes to a clean stop. - Speed is capped (~5000 px/s) and spin capped. - It bounces off the browser window's edges using the rotated rectangle's extents (restitution 0.5; almost none while held), and a glancing hit converts tangential speed into spin. THE JELLIES FEEL IT - Every frame, take the body's linear and angular acceleration into the calculator's own frame and apply it per key: lateral acceleration (plus angular acceleration × the key's distance and a little centripetal fling) pushes the jellies' shear springs the opposite way, and vertical acceleration pushes their squash springs. Pushes are clamped. - Accelerating makes them lag and lean; impacts make them splat and wobble. - On impacts: the LCD shakes, the little mascot jelly hops; a hard hit makes it dizzy with an "uh-oh"; a fast throw makes it gasp. SOUND (synthesised) - Lift: a plastic tock off the table plus a shiver of three tiny jelly bloops. - Moving: a continuous air swish whose level and brightness follow speed, a low rubber-feet hiss while it slides free, a whirr when spinning. - Impact (scaled by normal speed, throttled): a hollow plastic knock with resonances at ~620/1340/2750 Hz and an edge click, a wet squelch, and a few wobbling bloops on the digit notes; on hard hits a big wobbling "boing" of the whole tray. - A single tap on the case: a small plastic tick. PUTTING IT BACK - Double-tap the case, press Home, or click a "Put it back" button (shown only while it's away). - It flies home on a critically damped spring by the nearest way

Questions

What is this ui motion prompt for?

It is a Claude Opus motion design brief for “Interactive jelly calculator app with draggable physical behavior”. Paste it into Claude and keep the timings already written in the prompt.

Where is the original film?

The creator is @vib3coded. Use View post to open the X video this prompt belongs to.

More ui motion prompts