Skip to content
/ emblem Public
forked from GeorgeHastings/emblem

A small zero dependency plugin for creating text wrapped around a circle.

Notifications You must be signed in to change notification settings

vlzi/emblem

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 

Repository files navigation

Emblem

A small zero dependency plugin for creating text wrapped around a circle.

Demo: https://codepen.io/georgehastings/full/akZxaz/

##Usage:

Let's say I have an element with a class of "emblem" and some text in it.

<div class="emblem">Hello World</div>

You initialize an emblem by passing a class or ID to the init() function. If using a class, make sure only one instance exists on the page.

Emblem.init('.emblem');

That's it. Emblem will grab the text (has to be a string) and rerender it.

You can also pass in a string if you don't want to use text from your HTML.

Emblem.init('.emblem', 'Hello World');

*Not working? Make sure to check out the css in the demo.

About

A small zero dependency plugin for creating text wrapped around a circle.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%