Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/dev-warner/fadin

feather light javascript animation on scroll library
https://github.com/dev-warner/fadin

Last synced: 15 days ago
JSON representation

feather light javascript animation on scroll library

Awesome Lists containing this project

README

        

# Fadin

[![Build Status](https://travis-ci.org/dev-warner/fadin.svg?branch=master)](https://travis-ci.org/dev-warner/fadin)
[![Coverage Status](https://coveralls.io/repos/github/dev-warner/fadin/badge.svg)](https://coveralls.io/github/dev-warner/fadin)

code style: prettier


npm version

MIT

Extremely light fade in animation library. 3kb in size ungzipped :rocket:

# Getting Started

- [Documentation](http://fadin-docs.surge.sh/)
- [Example site](http://fadin-example-basic.surge.sh/)

run in your terminal

```sh
$ npm i fadin
```

```javascript
const fadin = require('fadin')

document.addEventListener('DOMContentLoaded', () => {
fadin('.my-class', { delay: 200 })
})
```

```html




```

```css
.my-class {
opacity: 0;
transition: 0.3s opacity;
}
```
# Todo list
- add more documentaion comments / clear up
- add options to fade in any 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!**