• Stars
    star
    307
  • Rank 136,109 (Top 3 %)
  • Language
    JavaScript
  • Created about 8 years ago
  • Updated over 6 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Single page app to create independent stroke animated SVGs

Vivus instant

Try Vivus Instant.

It's like Vivus but for a disposable usage. Powered by CSS animations.

Single page app to create independent stroke animated SVGs. For Vivus Instant to work properly make sure your SVG elements contains stroke properties and fill="none"

Why this project?

Many developers seem happy to use Vivus to animate SVGs, however many times it's for a single use without controls or callbacks.. so why download an extra JS library when a piece of CSS can do the job? So here it is: Vivus instant.

By looking at the code, you can mention a copy of the Pathformer and a custom Vivus. The entire controls and drawing parts have been stripped down to let place to a rendering engine.

How to use this SVG?

<!-- This should work everywhere -->
<object type="image/svg+xml" data="your_animated_svg.svg"></object>

<!-- This might be clunky -->
<img src="your_animated_svg.svg"/>

<!-- Copy pasting your animated SVG to use it inline -->
<svg>
  ...
</svg>

Manual trigger

This works by adding the trigger class to the SVG tag. Unfortunately, it can only be done inline, that means your entire SVG code must be in your HTML page. Otherwise the trigger won't work. However in a object tag it is possible to access the SVG tag to add the trigger class, but it require some extra logic to wait the document load. The tag is accessible via the property contentDocument of the <object> tag.

Help and feedback

These tools are in beta. Any feedback or bug report is welcome. Please open an issue or a pull request. Just follow the requirements in the issue template :)

More Repositories

1

vivus

JavaScript library to make drawing animation on SVG
JavaScript
14,931
star
2

minimator

Minimalist graphical editor
TypeScript
343
star
3

breaklock

Web game, hybrid of Mastermind and the Android pattern lock
JavaScript
288
star
4

triangulart

Dummy graphic editor to make isometric illustrations
JavaScript
138
star
5

triangulr

JavaScript class to generate maps of triangles
HTML
71
star
6

hexabeat

A music sequencer using commits
TypeScript
44
star
7

ghoster

Remove the white color from an image to make it transparent
JavaScript
34
star
8

tetrispad

Use the Novation Launchpad to play Tetris
JavaScript
28
star
9

wallery

Generate a map from a list of displayable elements
JavaScript
21
star
10

commitbeat

Generate small sequence of music from commit SHA
JavaScript
13
star
11

life-in-the-uk

HTML
12
star
12

palette

Angular app to generate color palettes
JavaScript
8
star
13

graxel

HTML
8
star
14

es6-quiz-slides

ECMA Script 6 quiz built with reveal.js
CSS
6
star
15

flipbits

The best random powered AI to take decisions
JavaScript
5
star
16

drafts

A place to put some drafts and examples
JavaScript
4
star
17

zapper

Injectable script to kill popup and banners
JavaScript
4
star
18

chromecast-canal-plus

JavaScript injection to cast videos from canalplus.fr
JavaScript
3
star
19

shuntr

Chrome extension boilerplate to define redirection rules
JavaScript
3
star
20

weluvarte

JavaScript injection to get video file links from arte.tv
JavaScript
2
star
21

tilt

A trolling attempt to change tech habits
HTML
2
star
22

a-playground

Personal A-Frame playground
JavaScript
2
star
23

me-from-the-past

PWA to send message to your future yourself [experimental]
JavaScript
1
star
24

liwe-talk

Liwe introduction at LNUG (23rd June 2015)
1
star