Basic

A basic animation can be created using the following structure.

<div id="vara-container"></div>
var vara = new Vara("#vara-container","font.json",[{
    text:"Hello World!!"
}]);

This creates an animation with the default options for font size, stroke width, color, text-align etc. The list of options and their default values can be found here.

Subscribe
Notify of
guest
2 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
Kevin Baugh
Kevin Baugh
6 years ago

Love it. One thing, though:

In the line, “values can be found here.” the link on “here” is pointing to localhost (http://localhost/docs/documentation/#options)