Files
willmiao-ComfyUI-Lora-Manager/py/services
Will Miao f4ea2551a8 feat(library): cycle example images on card hover
Cards with a static image preview now crossfade through the model's
example images when the pointer rests on the card, giving multi-concept
LoRAs a richer at-a-glance signature without giving up the single fixed
preview that anchors visual memory of the library.

- Cycling activates only after a 1.5s dwell so ordinary hover actions
  (action icons, tooltips) keep working; the card chrome fades out for
  an unobstructed view while cycling and returns on mouse leave
- Example metadata and the first frame start preloading at hover time,
  and each shown frame warms the next, so mode entry and interval ticks
  never wait on the network
- The cover image (usually the preview itself) opens the rotation as
  the anchor's stand-in; cycling starts from the second example and the
  cover rejoins when the rotation wraps
- Video previews keep their autoplay-on-hover behavior; video entries
  inside example lists are skipped, as are NSFW entries under SFW mode
  and blurred cards until unblurred
- Honors prefers-reduced-motion, pauses in hidden tabs, and cleans up
  when the virtual scroller recycles a card
- New settings: card_preview_cycle (default on) and
  card_preview_cycle_interval (2/3/5/8s, default 3s)

Implements #1182
2026-11-08 00:19:25 +08:00
..
2025-02-24 20:41:16 +08:00