Pixel mascot on UI
@opus-motion-library/pixel-mascot-on-ui
From Opus Motion Library
A chunky pixel-art mascot lives inside a crisp redrawn task-app window: it hops onto the top edges of the heading, input box, list rows and button with wind-up squash, parabolic arc, air stretch and damped landing squash plus dust, walks with a 9 Hz leg swap, blinks, breathes on the beat, and every action changes the real UI (typing with a pencil, checkboxes tick with sparkles, the button presses and hearts float). Original sprite, editable as character rows.
Install
node cli/mgl.mjs add pixel-mascot-on-ui --to <your-project>/srcWhen to use
- Good for
- Product walkthroughs, app-store previews and onboarding videos with a brand mascot; pairs with box-bot.
Specs
- Length
- 300f · 10s
- Length type
- Fixed
- FPS
- 30
- Style
- paper, pixel, playful, ui
- License
- MIT
Props (15)
stepsarray= [{"to":"heading","x":0.12,"at":0},{"to":"input","x":0.6,"at":30},{"to":"input","x":0.88,"at":90},{"to":"row0","x":0.6…mascot route: [{to: heading|input|row0|row1|row2|button, x: 0..1 along the top edge, at: frame}] — a jump if the surface changes, a walk along the same edge
spritearray= ["..a......a..",".aa......aa.",".bbbbbbbbbb.","bbbbbbbbbbbb","bbeebbbbeebb","bbeebbbbeebb","bcbbbbbbbbcb","bbbbbbbbbb…sprite rows of characters (12 wide; last row = legs)
spritePaletteobject= {"a":"#3FA88C","b":"#5FD0B0","e":"#23323A","c":"#F59DB0","s":"#47B898","l":"#3FA88C"}character → colour map for the sprite rows
titlestring= "Today"heading text
doneTitlestring= "All done"heading after the button press
inputTextstring= "Plan the launch"text typed into the input
placeholderstring= "Add a task..."input placeholder
rowsarray= ["Draft the announcement","Review the numbers","Send the invites"]list row labels (up to 3)
buttonstring= "Finish"button label
doneButtonstring= "Saved"button label after the press
accentstring= "#5B6CE0"UI accent colour (keep it different from the mascot hue)
wallpaperarray= ["#F1D9C8","#D5BFAB"]desktop gradient [top-left, bottom-right]
bpmnumber= 96beat the mascot breathes on
spritePxnumber= 8design-space size of one sprite pixel (6–12)
windowTitlestring= "Tasks"title in the app window title bar