UI kit reference
motion/shimmer
import { … } from 'zidane-ui'ui/src/motion/shimmer.ts
Functions#
syncShimmerFunction#
Ref callback for a .zg-shimmer label: starts its sweep on a shared
phase (the page clock), so a label swapped in mid-sweep carries the band
on from where the outgoing one had it, instead of restarting it.
function syncShimmer(el: HTMLElement | null): voidParameters
| Name | Type | Description |
|---|---|---|
| el | HTMLElement | null | The label element, or |
Constants#
SHIMMER_MSConstant#
One sweep of .zg-shimmer; must match its animation in styles/motion.css.
const SHIMMER_MS = 1800