• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In
Info updated!

humanspeak / svelte-motion
66%
main: 3%

Build:
Build:
LAST BUILD BRANCH: feat/use-animate
DEFAULT BRANCH: main
Repo Added 21 Feb 2025 05:35AM UTC
Token dfp0FoWB2YexHinOlPYfkZTafaIHIH3ah regen
Build 91 Last
Files 218
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/use-animate
branch: SELECT
CHANGE BRANCH
x
Sync Branches
  • No branch selected
  • feat/use-animate
  • feat/use-cycle
  • feat/use-in-view
  • feat/use-reduced-motion
  • fix/seo-unique-titles
  • initial-creation
  • main

29 Apr 2026 03:17PM UTC coverage: 66.408%. First build
25117415801

push

github

web-flow
feat: useAnimate hook (#339)

* feat: useAnimate hook

Imperative animation API mirroring framer-motion's useAnimate. Returns
[scope, animate] where scope is a Svelte 5 attachment and animate is a
scoped animate() that resolves CSS selectors against scope.current.

Closes #301

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

* fix: scope must contain every selector target in useAnimate demo

The demo and docs example attached `{@attach scope}` to the <ul>, but the
sequence's second segment targeted `button.target` — a sibling of the
list, not a descendant. `scope.current.querySelectorAll('button.target')`
matched nothing, so the target button never animated.

Move the scope onto a wrapper `<div>` that contains both the list and
the target, and update the docs snippet to make the requirement
explicit.

Add an e2e test that exercises the second segment by asserting the
target button's computed transform reflects the grow animation —
this would fail if the scope were attached to the <ul> alone.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

* fix: address CodeRabbit review on useAnimate

- Widen useAnimate<T> generic bound from HTMLElement to Element so SVG
  roots are valid scope targets, matching motion's AnimationScope<T>.
- Demo and docs example: stop scope.animations and bump a runToken in
  reset() so a Reset click during a running sequence cancels in-flight
  animations and prevents the awaited run() from setting a stale
  status='done'.
- Sitemap generator: preserve identifier-style titles (no whitespace) in
  example descriptions instead of lowercasing unconditionally. Phrase
  titles ("Animated Button" → "animated button") still flow naturally;
  API names ("useAnimate", "AnimatePresence") keep their casing. Regen
  applied to every entry in examples/+page.ts.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

406 of 551 branches covered (73.68%)

Branch coverage included in aggregate %.

12 of 12 new or added lines in 1 file covered. (100.0%)

1559 of 2408 relevant lines covered (64.74%)

8.09 hits per line

Relevant lines Covered
Build:
Build:
2408 RELEVANT LINES 1559 COVERED LINES
8.09 HITS PER LINE
Source Files on main
  • Tree
  • List 218
  • 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
25117415801 feat/use-animate feat: useAnimate hook (#339) * feat: useAnimate hook Imperative animation API mirroring framer-motion's useAnimate. Returns [scope, animate] where scope is a Svelte 5 attachment and animate is a scoped animate() that resolves CSS selectors again... push 29 Apr 2026 03:19PM UTC web-flow github
66.41
25068442496 feat/use-in-view feat: useInView hook (#338) * feat: useInView hook Mirrors framer-motion's useInView. Returns a Readable<boolean> that tracks viewport entry, with `root`, `margin`, `amount`, `once`, and `initial` options matching the React API. Refactors attac... push 28 Apr 2026 05:41PM UTC web-flow github
66.27
25012388228 feat/use-cycle Merge pull request #337 from humanspeak/feat/use-cycle feat: useCycle hook push 27 Apr 2026 06:28PM UTC web-flow github
64.07
25008812906 feat/use-reduced-motion Merge pull request #336 from humanspeak/feat/use-reduced-motion feat: MotionConfig.reducedMotion + useReducedMotionConfig push 27 Apr 2026 05:09PM UTC web-flow github
63.9
25004110149 feat/use-reduced-motion Merge pull request #335 from humanspeak/feat/use-reduced-motion feat: useReducedMotion hook push 27 Apr 2026 03:30PM UTC web-flow github
63.65
24964706831 fix/seo-unique-titles Merge pull request #295 from humanspeak/fix/seo-unique-titles feat(docs): migrate docs site from Cloudflare Pages to Workers push 26 Apr 2026 07:09PM UTC web-flow github
63.43
23697171728 fix/seo-unique-titles Merge pull request #293 from humanspeak/fix/seo-unique-titles feat: add tree-shaking support with named exports and Vite plugin push 28 Mar 2026 11:56PM UTC web-flow github
63.43
22812630427 fix/seo-unique-titles Merge pull request #279 from humanspeak/fix/seo-unique-titles fix(seo): use page.data for unique SSR titles push 08 Mar 2026 03:04AM UTC web-flow github
62.66
22725364042 initial-creation refactor(docs): migrate shared components to @humanspeak/docs-kit (#277) * refactor(docs): migrate sidebar, social cards, and utilities to docs-kit - Replace local Sidebar.svelte with shared Sidebar from @humanspeak/docs-kit - Extract nav sectio... push 05 Mar 2026 03:37PM UTC web-flow github
62.66
22682179161 initial-creation Merge pull request #276 from humanspeak/initial-creation refactor(docs): migrate to @humanspeak/docs-kit push 04 Mar 2026 05:58PM UTC web-flow github
62.66
See All Builds (87)

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