Generate Random Profile Image & Name – Animal Avatars

Category: Javascript | March 5, 2019
Author: alexanderbazo
Views Total: 2,598 views
Official Page: Go to website
Last Update: March 5, 2019
License: MIT

Preview:

Generate Random Profile Image & Name – Animal Avatars

Description:

Animal Avatars is a JavaScript avatar generator that helps you randomly generates random profile images and user names using Adorable Avatars API.

How to use it:

Import the Animal Avatars library into the document.

<script src="animal-avatars.js" defer></script>

Create a random avatar with a unique name.

var myAvatar = new AnimalAvatars.Avatar()

Get the generated profile name.

let userName = myAvatar.getAvatarName();

Get the generated profile image.

let profileImage = myAvatar.getAvatarUrl();

You Might Be Interested In:


Leave a Reply