lmgonzalves/segment
A JavaScript library to draw and animate SVG path strokes observed · 2026-08-28
Health v2 · maintenance only
23/100
- Activity 0
- Release rhythm 8
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 3967
- days_rel: n/a
- days_push: 3136
- n_releases_24m: 0
Adoption not part of the score
1735 stars · 100 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
Segment is a small JavaScript library for drawing and animating SVG path strokes using stroke-dasharray manipulation. It provides a simple draw() API with easing, delays, and callbacks, and can integrate with other animation libraries like GSAP.
Use cases
- animate svg path strokes on scroll
- draw line drawing effect on a logo
- create animated svg progress indicators
- animate stroke segments of an svg path with easing
- sync svg stroke animation with gsap
When to choose
- you need a tiny dependency-free library for SVG stroke drawing animations
- you want fine control over which segment of a path is drawn
- you want to combine stroke animation with GSAP or other tweening libraries
When to avoid
- you need a full-featured SVG animation framework
- you need to animate SVG attributes other than strokes
- you require long-term maintenance and recent updates, as the project has not been released since 2018
Facets
library · maturity maintenance
animation graphics web-development frontend graphics browser svg stroke-animation path-drawing javascript nodejs
2 sources
- readme: https://github.com/lmgonzalves/segment · fetched 2026-08-28 · eb2839fad868
- homepage: http://lmgonzalves.github.io/segment · fetched 2026-08-29 · 95ca0a5ff239
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| lmgonzalves/segment | main | 23 |
For agents
markdown · JSON · MCP: product_card(name="lmgonzalves/segment")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem