Minimal User Text Avatar Generator – User Icons

Category: Javascript | May 27, 2016
Author: hkelly93
Views Total: 2,244
Official Page: Go to website
Last Update: May 27, 2016
License: MIT

Preview:

Minimal User Text Avatar Generator – User Icons

Description:

User Icons is a small, standalone JavaScript library that lets you create a Google-like, SVG based text avatar icon from any strings separated by ‘.’.

How to use it:

Load the core javascript file in the document.

<script src="index.js"></script>

Create a new User Icon object and specify the user name like this:

var icon = new UserIcon('CSS.Script');

Display the avatar icon with the text ‘CS’ on your webpage.

document.body.appendChild(icon);

You Might Be Interested In:

Leave a Reply