Vivus
Development library / tool · Free
A JavaScript library for revealing SVGs through line drawing: sequential outline animation for diagrams, illustrations, and logos.
Also known as: maxwellito/vivus
What you can use for free
Vivus code is available free of charge for local and commercial projects, subject to its license.
Paid features and costs
This library does not require a paid plan. Development and hosting of the finished application are separate from the free code license.
Access and limitations
Vivus code is available free of charge for local and commercial projects, subject to its license. This library does not require a paid plan. Development and hosting of the finished application are separate from the free code license.
Use cases
- UI or SVG animation
- Smooth website content transitions
- Reveal an SVG logo by drawing its lines sequentially
- Animate the appearance of an outline diagram or illustration
Example workflow
A possible workflow; this is not a report of hands-on testing.
UI or SVG animation with Vivus.
Before you start
- A working JavaScript; SVG project and a specific use case: UI or SVG animation.
- A design, interface states, or dataset; target screens and accessibility requirements.
Steps
- Check the project's stack and version against the current Vivus documentation; add the package or the required source component.
- Implement the selected workflow with the supplied data, adapting styles and states to the project.
- Check the result in the target environment, remove sample data, and retain the notices required by the license.
Check your result
- The example works in the chosen tech stack, including target dimensions and input errors.
- Dependency size, keyboard behavior, and reduced motion suit the task; license terms are met.
Choosing Vivus
UI or SVG animation
Choose this when
- UI or SVG animation
- Smooth website content transitions
- Reveal an SVG logo by drawing its lines sequentially
Consider alternatives when
- When choosing for this topic, compare Vivus with Rough Notation. A candidate to compare under the topic: Vector animation. This is an editorial connection by topic, not a confirmed alternative or a guarantee that the products work together.
- When choosing for this topic, compare Vivus with barba.js. A candidate to compare: both product pages list the use case “UI or SVG animation”. Implementation approach and compatibility are checked separately.
Requirements
- SVG must use stroke rather than fill and contain no text objects. Loading a file through object requires dimensions on the parent element.
Things to consider
- Costs and limits of free use: This library does not require a paid plan. Development and hosting of the finished application are separate from the free code license.
- Terms of use: MIT: permits commercial use, modification, and distribution of the code at no charge, provided the license text and copyright notice are retained.
- With non-scaling-stroke, resizing requires recalc. Timing functions are computed for every path on every frame, so complex graphics increase animation work.
Frequently asked questions
What can you use for free in Vivus?
Vivus code is available free of charge for local and commercial projects, subject to its license.
What additional costs might arise with Vivus?
This library does not require a paid plan. Development and hosting of the finished application are separate from the free code license.
What terms of use matter for Vivus?
MIT: permits commercial use, modification, and distribution of the code at no charge, provided the license text and copyright notice are retained.
How do you get started with Vivus?
Check the project's stack and version against the current Vivus documentation; add the package or the required source component. Implement the selected workflow with the supplied data, adapting styles and states to the project. Check the result in the target environment, remove sample data, and retain the notices required by the license.
How do I prepare SVG for Vivus animation?
Vivus animates path strokes through stroke-dashoffset. delayed, sync, and oneByOne are supported; duration is specified in frames rather than milliseconds. Pathformer converts basic shapes to paths, but text must first be converted to outlines.
Related tasks and approaches
- Rough Notation
A candidate to compare under the topic: Vector animation. This is an editorial connection by topic, not a confirmed alternative or a guarantee that the products work together.
- barba.js
A candidate to compare: both product pages list the use case “UI or SVG animation”. Implementation approach and compatibility are checked separately.
- Moti
A candidate to compare: both product pages list the use case “UI or SVG animation”. Implementation approach and compatibility are checked separately.
License
MIT: permits commercial use, modification, and distribution of the code at no charge, provided the license text and copyright notice are retained.
MIT — permissive license
You can use, modify, distribute, and sell the code, including in a closed-source commercial product. When sharing copies or substantial portions of the code, retain the license text and copyright notice. You do not need to open-source your entire project; the author provides no warranties.
License termsTechnologies and topics
- JavaScript
- SVG
- vector