Rough Notation
Development library / tool · Free
Animated SVG annotations around text: underlines, outlines, and highlights in a hand-drawn style for interfaces and presentations.
Also known as: rough-stuff/rough-notation

What you can use for free
Rough Notation 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
Rough Notation 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
- Underline or outline important text with an animated SVG annotation
- Highlight an explanation in an interface or web presentation in a hand-drawn style
Example workflow
A possible workflow; this is not a report of hands-on testing.
UI or SVG animation with Rough Notation.
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 Rough Notation 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 Rough Notation
UI or SVG animation
Choose this when
- UI or SVG animation
- Smooth website content transitions
- Underline or outline important text with an animated SVG annotation
Consider alternatives when
- When choosing for this topic, compare Rough Notation with Vivus. 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 Rough Notation 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
- Call annotate for the DOM element with a highlight type, then show; create groups through annotationGroup.
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.
- SVG is inserted as the element's sibling, so tables may require a wrapper. multiline is supported only for inline elements.
Frequently asked questions
What can you use for free in Rough Notation?
Rough Notation code is available free of charge for local and commercial projects, subject to its license.
What additional costs might arise with Rough Notation?
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 Rough Notation?
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 Rough Notation?
Check the project's stack and version against the current Rough Notation 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 show highlights in sequence?
annotationGroup groups annotations and starts them sequentially. An individual annotation configures its type, color, animationDuration, and animate flag.
How do I disable drawing animation or support line wrapping?
animate: false disables animation. multiline: true handles several lines in an inline element; for complex table structure, the README recommends wrapping the target in span/div.
Related tasks and approaches
- Vivus
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