Skip to main content

scroll-highlight-demo

Demonstration helpers for the scroll-highlight animation system (scroll-highlight.ts). Intended as copy-paste patterns for focus-after-scroll UX.

Preset wrappers​

ExportUses
highlightElementBasicDefault applyScrollHighlight
highlightElementQuickHIGHLIGHT_PRESETS.quick
highlightElementSuccessGreen success preset
highlightElementErrorRed, longer, no scaling
highlightElementAttentionWarning / intense preset
highlightElementCustomDuration + color enum

Additional demos in the same file cover batch highlights, scroll-linked targets, and debug logging (logger disabled by default).


Sources: src/lib/utils/scroll-highlight-demo.ts, src/lib/utils/scroll-highlight.ts