AI analysis A side by side motion demo comparing a shadow that moves with a lifting notification card against one that stays grounded and fades.
Two identical notification cards sit side by side at the center of a white canvas, each with a comparison label below and a pill badge showing playback speed at the bottom center. Each card has an info icon, a bold title with gray supporting text, and a blue pill shaped upgrade button, finished with a thin border and a wide soft shadow. On the left the shadow rises and disappears with the card, while on the right the shadow stays on the ground, narrowing horizontally and fading as the card lifts away. Alternating real speed and slow motion playback makes it a useful reference for shadow micro interactions that add depth and physicality.
minimal · light-mode
claude-opus-5-5 · 2026-12-03 07:09 · Confidence 0.75
Original post Design Engineering Tip:
Separate the object from its shadow.
When an element lifts away from a surface, the shadow doesn't always need to move with it. Keeping the shadow grounded and fading it based on distance can create a stronger sense of depth and physicality.
Used carefully, this can make interfaces feel more tangible and less like layers floating on a screen. It's not something I'd apply everywhere, but for moments that need extra emphasis, it can be surprisingly effective.
js
const card = document.querySelector(".notification"); const shadow = document.querySelector(".shadow"); card.animate( [ { transform: "translateY(0)" }, { transform: "translateY(-160px)" }, ], { duration: 900, easing: "cubic-bezier(.64,0,.78,0)" } ); shadow.animate( [ { opacity: 0.5, transform: "scaleX(1)" }, { opacity: 0, transform: "scaleX(.35)" }, ], { duration: 700, easing: "ease-out" } );
1,048 likes · 36 reposts
x.com/gabriell_lab/status/2063591609392840984