SuccessTickRipple
Celebration tick - a green medallion that drops in with a spring rebound
while three radial-gradient rings ripple outward from its centre and a
residual mint glow settles on the upper edges of the parent container.
Layout contract:
- The component renders a position: absolute; inset: 0 ripple field
plus the medallion (in normal flow). The ripple field attaches to
the nearest positioned ancestor - wrap this component in a parent
that is position: relative and overflow: hidden to bound the
celebration. The medallion's centre is the visual impact point.
Tuning:
- Override --tick-impact-x / --tick-impact-y on the parent to move
the ripple origin (defaults to 50% / 50% of the parent).
Animations are CSS-only and run once on mount. prefers-reduced-motion
collapses to the final settled state and hides the ripple.
Usage
Best practices
Wrap
SuccessTickRipplein aposition: relative; overflow: hiddenparent - the ripple field is absolutely positioned and bleeds past an unbounded container.It's decorative (
aria-hidden) unless you passaria-label, which exposes it as animg; animations are CSS-only and already collapse underprefers-reduced-motion.
Props
Also exports
- interface
SuccessTickRippleProps