• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

humanspeak / svelte-motion
69%
main: 3%

Build:
Build:
LAST BUILD BRANCH: codex/use-animation-controls
DEFAULT BRANCH: main
Repo Added 21 Feb 2025 05:35AM UTC
Token dfp0FoWB2YexHinOlPYfkZTafaIHIH3ah regen
Build 114 Last
Files 240
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

LAST BUILD ON BRANCH feat/variant-string-keys
branch: feat/variant-string-keys
CHANGE BRANCH
x
Reset
Sync Branches
  • feat/variant-string-keys
  • chore/deps-motion-12.39.0
  • chore/package-updates
  • codex/optimized-appear-animations
  • codex/use-animation-controls
  • docs-ui-ux
  • docs-ui-ux-batch-2
  • feat/layout-animation-cluster
  • feat/layout-group
  • feat/motion-custom-prop
  • feat/pan-gesture
  • feat/runes-w2-boolean-snapshots
  • feat/runes-w3-motion-values
  • feat/seo-geo-improvements
  • feat/use-animate
  • feat/use-cycle
  • feat/use-follow-value
  • feat/use-in-view
  • feat/use-presence
  • feat/use-reduced-motion
  • feat/while-in-view-viewport
  • fix/animate-transform-persist
  • fix/release-cleanup-always-run
  • fix/seo-unique-titles
  • fix/usepresence-svelte-5-55-7-main
  • initial-creation
  • main

20 May 2026 01:57PM UTC coverage: 69.066%. First build
26167344324

push

github

web-flow
feat(variants): variant string keys + arrays on whileX props (#349) (#355)

* feat(variants): variant string keys + arrays on whileX props (#349)

Widen `whileHover` / `whileTap` / `whileFocus` / `whileDrag` /
`whileInView` to accept a variant key string or an array of keys,
matching framer-motion's `VariantLabels = string | string[]` surface.
Inline keyframes still work — this is purely additive.

Array form merges variants left-to-right, with later entries
overriding earlier ones on key collisions. Missing keys are silently
skipped (no-op).

While here, also extend `initial` / `animate` / `exit` to accept array
form — the same upstream contract applies and the existing
single-string support generalised cleanly.

- New `resolveVariantList` + `resolveWhile` helpers in
  `src/lib/utils/variants.ts`. The existing `resolveInitial` /
  `resolveAnimate` / `resolveExit` delegate to `resolveVariantList`,
  so array-form support comes through for free.
- Type widening in `src/lib/types.ts` for all eight affected props.
- Five `$derived` resolved values in `_MotionContainer.svelte`
  feeding the five attach helpers + drag opts.
- 14 new unit tests in `variants.spec.ts` covering single-string,
  array, missing-key, mixed-missing, function-form + custom.
- 3 new component tests in `_MotionContainer.spec.ts` driving
  whileHover via single string, array form, and unknown-key no-op.
- Regression route `/tests/motion/while-string-variants/` exercising
  all five whileX with variant keys; wired into the root nav.
- Playwright e2e drives whileHover with both single-string and
  array form, verifying scale + the later-wins backgroundColor
  merge.
- Docs: `VariantsWhileHoverExample` + new `/examples/variants-while-hover`
  route, examples catalog entry, expanded variants docs page with
  the new "Variant keys on gesture props" section.
- README + llms.txt + llms-full.txt updated to reflect the broadened
  surface.

Closes #349

* docs(test): address CodeRabbit feedbac... (continued)

481 of 634 branches covered (75.87%)

Branch coverage included in aggregate %.

32 of 33 new or added lines in 2 files covered. (96.97%)

1812 of 2686 relevant lines covered (67.46%)

10.92 hits per line

Relevant lines Covered
Build:
Build:
2686 RELEVANT LINES 1812 COVERED LINES
10.92 HITS PER LINE
Source Files on feat/variant-string-keys
  • Tree
  • List 223
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
26167344324 feat/variant-string-keys feat(variants): variant string keys + arrays on whileX props (#349) (#355) * feat(variants): variant string keys + arrays on whileX props (#349) Widen `whileHover` / `whileTap` / `whileFocus` / `whileDrag` / `whileInView` to accept a variant key... push 20 May 2026 01:59PM UTC web-flow github
69.07
See All Builds (110)

Badge your Repo: svelte-motion

We detected this repo isn’t badged! Grab the embed code to the right, add it to your repo to show off your code coverage, and when the badge is live hit the refresh button to remove this message.

Could not find badge in README.

Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

Refresh
  • Settings
  • Repo on GitHub
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc