Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/plantain-00/ease-in-out

An ease-in-out no-css animation library.
https://github.com/plantain-00/ease-in-out

Last synced: 12 days ago
JSON representation

An ease-in-out no-css animation library.

Awesome Lists containing this project

README

        

# ease-in-out

[![Dependency Status](https://david-dm.org/plantain-00/ease-in-out.svg)](https://david-dm.org/plantain-00/ease-in-out)
[![devDependency Status](https://david-dm.org/plantain-00/ease-in-out/dev-status.svg)](https://david-dm.org/plantain-00/ease-in-out#info=devDependencies)
[![Build Status: Windows](https://ci.appveyor.com/api/projects/status/github/plantain-00/ease-in-out?branch=master&svg=true)](https://ci.appveyor.com/project/plantain-00/ease-in-out/branch/master)
![Github CI](https://github.com/plantain-00/ease-in-out/workflows/Github%20CI/badge.svg)
[![npm version](https://badge.fury.io/js/ease-in-out.svg)](https://badge.fury.io/js/ease-in-out)
[![Downloads](https://img.shields.io/npm/dm/ease-in-out.svg)](https://www.npmjs.com/package/ease-in-out)
[![gzip size](https://img.badgesize.io/https://unpkg.com/ease-in-out?compression=gzip)](https://unpkg.com/ease-in-out)
[![type-coverage](https://img.shields.io/badge/dynamic/json.svg?label=type-coverage&prefix=%E2%89%A5&suffix=%&query=$.typeCoverage.atLeast&uri=https%3A%2F%2Fraw.githubusercontent.com%2Fplantain-00%2Fease-in-out%2Fmaster%2Fpackage.json)](https://github.com/plantain-00/ease-in-out)

An ease-in-out no-css animation library.

## features

+ ease in out
+ ease in
+ ease out

## install

`npm i ease-in-out`

## usage

```ts
import * as EaseInOut from "ease-in-out";
//

const contentElement = document.getElementById("content");
const contentScroll = new EaseInOut.EaseInOut(currentValue => {
contentElement.scrollTop = currentValue;
});
contentScroll.start(contentElement.scrollTop, contentElement.scrollTop + 100);
```

## change logs

```ts
// v2
import { EaseInOut, EaseIn, EaseOut } from "ease-in-out";
new EaseInOut();
new EaseIn();
new EaseOut();

// v1
import EaseInOut from "ease-in-out";
new EaseInOut();
```