Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/bsonntag/parse-css-transition

Parses CSS transitions into an object.
https://github.com/bsonntag/parse-css-transition

css parser parsing transition transitions

Last synced: about 1 month ago
JSON representation

Parses CSS transitions into an object.

Awesome Lists containing this project

README

        

# parse-css-transition

> Parses CSS transitions into an object.

## Installation

With npm:

```sh
npm install --save parse-css-transition
```

With yarn:

```sh
yarn add parse-css-transition
```

## Usage

```js
import parseCssTransition from 'parse-css-transition';

parseCssTransition('color 2s ease 100ms');
// {
// name: 'color',
// duration: 2000,
// timingFunction: 'ease',
// delay: 100
// }
```