fadin
TypeScript icon, indicating that this package has built-in type declarations

1.7.1 • Public • Published

Fadin

Build Status Coverage Status code style: prettier npm version MIT

Extremely light fade in animation library. 3kb in size ungzipped 🚀

Getting Started

run in your terminal

$ npm i fadin
const fadin = require('fadin')

document.addEventListener('DOMContentLoaded', () => {
  fadin('.my-class', { delay: 200 })
})
<div class="my-class"></div>
<div class="my-class" data-delay="0.4s"></div>
<div class="my-class"></div>
.my-class {
    opacity: 0;
    transition: 0.3s opacity;
}

#Todo list

  • add more documation comments / clear up
  • add options to fade in my direction
  • make more performant/smooth
  • let options be functions and values

License

This project is licensed under the MIT License - see the LICENSE.md file for details

Free Software, Hell Yeah!

Readme

Keywords

none

Package Sidebar

Install

npm i fadin

Weekly Downloads

235

Version

1.7.1

License

MIT

Unpacked Size

38 kB

Total Files

18

Last publish

Collaborators

  • dev-warner