Pag-usab sa mga estado sa UI
Pag-aghat
Pangutan-a ko para sa: 8 ngadto sa 12 ka UI states nga gusto nakong mahimo sa porma (pananglitan button, loader, player, slider, toggle, tabs, chart, command palette, toast), puro nga itom ug puti o usa ka accent color, ug usa ka royalty-free nga kanta nga mga 120 BPM (pananglitan Mixkit, libre para sa komersyal nga paggamit). Paglihok sa UI nga lebel sa Dribbble. Usa ka porma, dili gyud maputol: ang matag estado parehas nga elemento nga nag-usab sa gidak-on, radius ug kolor samtang ang sulud niini nag-ilis nga adunay mubo nga blur. Usa ka cursor ang nagduso sa matag pagbag-o nga adunay tinuod nga mga pag-klik ug pag-drag. Hayag nga warm-gray nga canvas, itom ug puti nga mga sangkap, usa ka limpyo nga UI font (Geist). Mo-spring bisan asa, gamay ra kaayo nga overshoot. Ang camera mo-zoom aron ang matag estado mapuno ang frame. Ang katapusang frame mao ang una nga frame, mao nga kini nag-loop. Gidili: paghinay sa paglihok, pagbuto sa particle, pagsidlak, mga gradient sa UI chrome, dili magkatugma nga mga stroke sa icon, dead time, bisan unsa nga morag template. 120 BPM, 7 ka bar, naa gyuy mahitabo sa matag beat. Button → loader → check → dynamic island → music player nga may play/pause morph → i-scrub ang progress bar → kini mahimong volume slider nga mo-stretch kon i-drag lapas sa max → ang toggle mo-flip sa beat → ang knob mahimong liquid tab indicator → ang mga tab moabli ngadto sa usa ka chart nga modrowing sa iyang kaugalingon, nga adunay tooltip kon mo-hover → kini mo-collapse ngadto sa ⌘K → type to filter → enter → toast → balik sa button. 1. Usa ka HTML file, kuwadrado nga 1440x1440. Ang matag estilo gikompyut gikan sa oras sulod sa seek(t): walay mga transisyon CSS, walay mga timer, walay estado nga gidala taliwala sa mga frame. 2. Ang mga spring kay mga closed-form step responses. Ang usa ka bili nga nag-usab sa target sa daghang beses mao ang suma sa usa ka spring kada pagbag-o, busa kini magpabilin nga usa ka puro nga function sa oras. 3. Ang duha ka kilid sa tab indicator naggamit og lain-laing spring, mao nga ang leading edge nag-una sa kilid sa likod. Parehas ra gihapon ang limbong para sa toggle knob. 4. Ang mga pag-drag direktang manipulasyon: samtang gikuptan ang cursor, ang bili gikompyut gikan sa posisyon niini. Sa pagpagawas niini, kini mobalik gikan sa kung asa kini kaniadto. 5. Analisaha ang kanta gamit ang numpy para sa beat grid ug sugdi sa downbeat. Ibutang ang matag UI sound sa gisukod nga peak niini. 6. I-render gamit ang Playwright: 4 ka subframe kada frame, gisagol sa ffmpeg tmix para sa motion blur sa 60fps. 7. I-render ang usa ka frame kada beat sa dili pa ang tibuok render. Ayuhon ang bisan unsang wala sa grid, pig-ot o lisod basahon. Ayaw gyud butangi og "will-change" ang bisan unsa nga gi-scale sa camera o gi-render sa text nga blurry. Ang text nga nag-ilis sulod sa morphing container nagkinahanglan og kaugalingong enter ug exit timing kay kon dili, mag-overlap kini. Himoa nga ang katapusang frame parehas sa una, apil ang posisyon ug speed sa cursor, kay kon dili, mo-stutter ang loop. Pangayoa ang mga input, dayon ipakita kanako ang lista sa estado sa beat grid sa dili pa ka magsulat og bisan unsang code.
Ask me for: 8 to 12 UI states I want the shape to become (e.g. button, loader, player, slider, toggle, tabs, chart, command palette, toast), pure black and white or one accent color, and a royalty-free song around 120 BPM (e.g. Mixkit, free for commercial use).
Dribbble-level UI motion. One shape, never cut: every state is the same element morphing its size, radius and color while its content swaps with a short blur. A cursor drives every change with real clicks and drags. Light warm-gray canvas, black and white components, one clean UI font (Geist). Springs everywhere, a tiny overshoot at most. The camera zooms so each state fills the frame. The last frame is the first frame, so it loops.
Banned: bouncy easing, particle bursts, glows, gradients on UI chrome, mismatched icon strokes, dead time, anything that looks like a template.
120 BPM, 7 bars, something happens on every beat.
Button → loader → check → dynamic island → music player with a play/pause morph → scrub the progress bar → it becomes a volume slider that stretches when dragged past max → a toggle flips on the beat → the knob becomes a liquid tab indicator → the tabs open into a chart that draws itself, with a tooltip on hover → it collapses into ⌘K → type to filter → enter → toast → back to the button.
1. One HTML file, square 1440x1440. Every style is computed from time inside seek(t): no CSS transitions, no timers, no state carried between frames.
2. Springs are closed-form step responses. A value that changes target many times is the sum of one spring per change, so it stays a pure function of time.
3. The tab indicator's two edges ride different springs, so the leading edge stretches ahead of the trailing one. Same trick for the toggle knob.
4. Drags are direct manipulation: while the cursor is held, the value is computed from its position. On release it springs back from wherever it was.
5. Analyze the song with numpy for the beat grid and start on a downbeat. Place every UI sound by its measured peak.
6. Render with Playwright: 4 subframes per frame, blended with ffmpeg tmix for motion blur at 60fps.
7. Render one frame per beat before the full render. Fix anything off the grid, cramped or hard to read.
Never put will-change on anything the camera scales or the text renders blurry. Text that swaps inside a morphing container needs its own enter and exit timing or it overlaps. Make the last frame identical to the first, cursor position and speed included, or the loop stutters.
Ask me for the inputs, then show me the state list on the beat grid before you write any code.
Gikuha ang prompt gikan sa poste @demonugc.
- Modelo
- Opus 5.5
- Tumpok
- HTML, Playwright
- Gipatik
Paghimo og video nga ingon ani
Paghimo og mga video nga sama niini sa imong kaugalingon—7 ka pilo nga mas barato kaysa sa API—gamit ang among Google Chrome extension.. Motrabaho uban ni Claude pinaagi sa MCP: ikaw ang mohulagway sa buluhaton, ug ang extension modumala sa proseso sa pagmugna gikan sa prompt hangtod sa nahuman nga file. Kini mo-generate og mga video, mo-assemble niini, mo-voice niini, ug mo-translate niini.
Automation — MCP для Google Flow, Google Vids и Claude
TikTok Symphony Creative Studio MCP Claude Code
SeedFlow — Seedance 2.5 в Dreamina, Qwen-Audio-3.1-TTS и Claude MCP