Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/jerosoler/ioaa

Intersection Observer API Animation ⚡ Fast animation Inteserction Observer library
https://github.com/jerosoler/ioaa

animation animation-css css intersectionobserver intersectionobserver-api ioa stylesheets

Last synced: 2 months ago
JSON representation

Intersection Observer API Animation ⚡ Fast animation Inteserction Observer library

Awesome Lists containing this project

README

        


IOAA


Intersection Observer API Animation


⚡ Fast animation Inteserction Observer library

# IOAA - Intersection Observer API Animation

## Demo

[Demo](https://jerosoler.github.io/ioaa/)

## Install

Simple install with npm or download dist file.

### NPM

```bash
npm install ioaa -s
```

### javascript

```javascript
import ioaa from "../dist/ioaa.min.js";
```

## How to use

### HTML

```html


...

```

| Option | Default | Description |
| ------------------- | ------- | --------------------------- |
| class | ioaa | Class Name for animation |
| data-ioaa-animation | null | Your class name animation |
| data-ioaa-repeat | false | True or False, not required |

### Javascript

```

import ioaa from "../src/ioaa.js";
ioaa(); // Or ioaa('.YOU_CLASSNAME'); Default ClassName ioaa

```

### CSS

```css
.animateLeft {
animation-name: fadeInLeft;
animation-duration: 1s;
}
@keyframes fadeInLeft {
from {
opacity: 0;
transform: translate3d(-100%, 0, 0);
}

to {
opacity: 1;
transform: translate3d(0, 0, 0);
}
}
```