├── .gitignore
├── LICENSE
├── README.md
├── images
├── fav.png
└── social.png
├── index.html
├── package-lock.json
├── package.json
├── rough-notation.iife.js
└── script.js
/.gitignore:
--------------------------------------------------------------------------------
1 | node_modules
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2020 Preet
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # rough-notation-web
2 | roughnotation.com website
3 |
--------------------------------------------------------------------------------
/images/fav.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rough-stuff/rough-notation-web/b8f40eca3be5504f555238a7777e73c0d5eaaaa7/images/fav.png
--------------------------------------------------------------------------------
/images/social.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rough-stuff/rough-notation-web/b8f40eca3be5504f555238a7777e73c0d5eaaaa7/images/social.png
--------------------------------------------------------------------------------
/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
A small JavaScript library to create and animate annotations on a web page
116 |
117 | Rough Notation uses RoughJS to create a
118 | hand-drawn look and feel.
119 | Elements can be annotated in a number of different styles. Animation duration and delay can be configured, or
120 | just turned off.
121 |
122 |
Rough Notation is 3.8kb in size when gzipped, and the code is available on
123 | GitHub.
Following are the different styles of annotations. Hit the annotate button in each section
136 | to see the animated annotation
137 |
138 |
139 |
140 |
141 |
Underline
142 |
Create a sketchy underline below an element.
143 |
144 |
145 |
146 |
147 |
148 |
149 |
150 |
Box
151 |
This style draws a box around the element.
152 |
153 |
154 |
155 |
156 |
157 |
158 |
159 |
Circle
160 |
Draw a circle around the element.
161 |
162 |
163 |
164 |
165 |
166 |
167 |
168 |
Highlight
169 |
Creates a highlight effect as if marked by a highlighter.
170 |
171 |
172 |
173 |
174 |
175 |
176 |
177 |
Strike-Through
178 |
Draw a hand-drawn line through an element creating a stroke-through effect.
179 |
180 |
181 |
182 |
183 |
184 |
185 |
186 |
Crossed-Off
187 |
To symbolize rejection, use a crossed-off effect on an element.
188 |
189 |
190 |
191 |
192 |
193 |
194 |
195 |
Brackets
196 |
Create a hand-drawn bracket around a block (like a paragraph of text) on one or multiple sides of the block.
197 |
198 |
199 | Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed accumsan nisi hendrerit augue molestie tempus.
200 | Phasellus purus quam, aliquet nec commodo quis, pharetra ut orci. Donec laoreet ligula nisl,
201 | placerat molestie mauris luctus id. Fusce dapibus non libero nec lobortis. Nullam iaculis nisl ac eros
202 | consequat, sit amet placerat massa vulputate.
203 |
204 |
205 |
206 |
207 |
208 |
209 |
210 |
211 |
Multiple lines
212 |
Ability to annotate inline content that can span multiple lines
213 |
214 | Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed accumsan nisi hendrerit augue molestie tempus.
215 | Phasellus purus quam, aliquet nec commodo quis, pharetra ut orci. Donec laoreet ligula nisl,
216 | placerat molestie mauris luctus id. Fusce dapibus non libero nec lobortis. Nullam iaculis nisl ac eros
217 | consequat, sit amet placerat
218 | massa vulputate. Maecenas euismod volutpat ultrices. Pellentesque felis ex, ullamcorper in felis finibus,
219 | feugiat
220 | dignissim augue. Integer malesuada non eros consectetur interdum. Mauris mollis non urna in porta.
221 |
222 |
223 |
224 |
225 |
226 |
227 |
228 |
229 |
Annotation Group
230 |
Rough Notation provides a way to order the animation of annotations by creating an
231 | annotation-group. Pass the list of annotations to create a group.
232 | When show is called on the group, the annotations are animated in order.
233 |
234 |
235 |
236 |
237 |
238 |
239 |
240 |
Annotation Styling
241 |
Various properties of the annotation can be configured, like color, strokeWidth, animation
242 | duration.
243 |
244 |
245 |
246 |
247 |
248 |
249 |
250 |
251 |
No Animation
252 |
Of course you don't have to animate the annotation, it just shows up when show is called.
253 |
254 |
255 |
256 |
257 |
258 |
259 |
260 |
261 |
262 | All the code and documentation is available on Github.
263 |