From dylantarre-animation-principles
Use when animating notifications, toasts, alerts, snackbars, or system messages to grab attention appropriately
npx claudepluginhub joshuarweaver/cascade-content-creation-misc-1 --plugin dylantarre-animation-principlesThis skill uses the workspace's default tool permissions.
Apply Disney's 12 principles to notifications for attention-grabbing yet non-disruptive alerts.
Generates design tokens/docs from CSS/Tailwind/styled-components codebases, audits visual consistency across 10 dimensions, detects AI slop in UI.
Records polished WebM UI demo videos of web apps using Playwright with cursor overlay, natural pacing, and three-phase scripting. Activates for demo, walkthrough, screen recording, or tutorial requests.
Delivers idiomatic Kotlin patterns for null safety, immutability, sealed classes, coroutines, Flows, extensions, DSL builders, and Gradle DSL. Use when writing, reviewing, refactoring, or designing Kotlin code.
Apply Disney's 12 principles to notifications for attention-grabbing yet non-disruptive alerts.
Toast can compress slightly on entrance impact, then stretch back. Creates a "landing" feel as if it arrived from off-screen.
Before auto-dismiss, toast can contract slightly (95% scale) for 100ms. Signals imminent departure to user.
Notifications should appear in consistent locations. Use color and icons to stage importance: info, success, warning, error.
Define states: entering, visible, exiting, stacked. Clear keyframes for entrance, attention (if needed), and exit.
Icon animates after container arrives (checkmark draws, bell wobbles). Progress bar for auto-dismiss follows toast entrance.
Enter: ease-out (fast in, slow settle). Exit: ease-in (slow start, fast out). cubic-bezier(0.68, -0.55, 0.27, 1.55) for bounce.
Toasts sliding from corners can follow slight arc. Bell icons should swing in arc, not rotate rigidly.
While toast slides in (primary), shadow appears (secondary), icon animates (tertiary), progress bar starts (quaternary).
Error notifications can shake or pulse red. Critical alerts can be larger, bolder animations. Match urgency to importance.
Maintain consistent toast sizing. Icons should be crisp. Progress bars should be smooth (use transforms, not width).
Smooth notifications feel polished. Jarring popups annoy users. A well-animated toast conveys professionalism.
.toast {
animation: toastEnter 300ms cubic-bezier(0.68, -0.55, 0.27, 1.55);
}
.toast.exiting {
animation: toastExit 200ms ease-in forwards;
}
@keyframes toastEnter {
from {
opacity: 0;
transform: translateY(-100%) scale(0.9);
}
to {
opacity: 1;
transform: translateY(0) scale(1);
}
}
@keyframes toastExit {
to {
opacity: 0;
transform: translateX(100%);
}
}
.toast-progress {
transform-origin: left;
animation: progress 4000ms linear forwards;
}
transform: translate, scaleopacity: fadeanimation: entrance/exit sequencestransform-origin: progress barsbox-shadow: depth