Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/bsonntag/parse-css-transition
- Owner: bsonntag
- License: mit
- Created: 2017-07-10T18:57:55.000Z (over 7 years ago)
- Default Branch: main
- Last Pushed: 2023-10-16T16:45:17.000Z (about 1 year ago)
- Last Synced: 2024-11-05T08:38:46.303Z (about 2 months ago)
- Topics: css, parser, parsing, transition, transitions
- Language: JavaScript
- Homepage:
- Size: 588 KB
- Stars: 4
- Watchers: 3
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
// }
```