A small library for easy fade in fade in and fade out effects.
npm i fade-animations
<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>
import { fadeIn } from 'fade-animations'
const element = document.getElementById('elementId')
fadeIn(element)
import { fadeOut } from 'fade-animations'
const element = document.getElementById('elementId')
fadeOut(element)