fade-animations

1.2.1 • Public • Published

npm

fade-animations

A small library for easy fade in fade in and fade out effects.

Install

NPM

npm i fade-animations

CDN

<link rel="stylesheet" href="https://unpkg.com/fade-animations/dist/index.min.css">
<script src="https://unpkg.com/fade-animations/dist/index.min.js"></script>

Usage

fadeIn

import { fadeIn } from 'fade-animations'

const element = document.getElementById('elementId')
fadeIn(element)

fadeOut

import { fadeOut } from 'fade-animations'

const element = document.getElementById('elementId')
fadeOut(element)

Readme

Keywords

Package Sidebar

Install

npm i fade-animations

Weekly Downloads

1

Version

1.2.1

License

MIT

Unpacked Size

6.53 kB

Total Files

10

Last publish

Collaborators

  • scudderkpls