Skip to content

navapbc/navanyms

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Navanyms

People who work at Nava are people first, but for fun sometimes we use a collective noun. Some people have preferences, others like the variety 😊

This is a simple JS function that shuffles through our favorite Navanyms/Demonyms

Installation

npm install navanyms

Usage

Example HTML:

Meet the <span class="js-navanyms">Navacados</span>

Then in your JS:

import navanyms from 'navanyms';

var nounElement = document.querySelector('.js-navanyms');

navanyms(nounElement);

API

navanyms(nounElement, speed)

Arguments:

  • nounElement (HTMLElement): The HTML element that wraps the Navanym.
  • speed (Number): Shuffle speed, in milliseconds. (Default: 2500)

About

A simple function for shuffling between Navanyms

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •