Skip to content

bsonntag/parse-css-transition

Repository files navigation

parse-css-transition

Parses CSS transitions into an object.

Installation

With npm:

npm install --save parse-css-transition

With yarn:

yarn add parse-css-transition

Usage

import parseCssTransition from 'parse-css-transition';

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

About

Parses CSS transitions into an object.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published