Generate Random Cartoon Avatars With Js And Svg

Javascript Animation Added By Md Hossain Shahid
468
0
Demo
Download

faces.js is a standalone JavaScript library used for generating random, SVG-based, vector shaped cartoon faces for user avatars.



How to use it:

1. Install and import.

# Yarn
$ yarn add facesjs

# NPM
$ npm i facesjs
import * as faces from "facesjs";
2. OR Download and place the JavaScript file faces.js at the bottom of the webpage.
<script src="faces.js"></script>

3. Generate a random cartoon avatar inside a given container.

<div id="example"></div>


You Like Related