# lmgonzalves/segment

A JavaScript library to draw and animate SVG path strokes

Repository: https://github.com/lmgonzalves/segment
Canonical: https://ross.abutalabs.com/products/segment
Homepage: http://lmgonzalves.github.io/segment
Language: CSS
License: MIT
License Family: permissive
Last push: 2018-01-31T20:21:23+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 3967, "days_push": 3136, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1735, forks 100 (observed 2026-08-28T04:05:29.126973+00:00)

## What it is
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
- artifact type: library
- maturity: maintenance
- function: animation, graphics
- domain: web-development, frontend, graphics
- platform: browser
- tags: svg, stroke-animation, path-drawing, javascript, nodejs

## Member repositories
- lmgonzalves/segment (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:29.126973+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T03:30:49.749608+00:00, confidence not recorded.
  - readme: https://github.com/lmgonzalves/segment (fetched 2026-08-28T04:05:29.126973+00:00, sha eb2839fad868)
  - homepage: http://lmgonzalves.github.io/segment (fetched 2026-08-29T11:07:58.654506+00:00, sha 95ca0a5ff239)
- Data as of 2026-08-30T08:39:29.467469+00:00.
