# react-keyframes
**Repository Path**: mirrors_vercel/react-keyframes
## Basic Information
- **Project Name**: react-keyframes
- **Description**: Create frame-based animations in React
- **Primary Language**: Unknown
- **License**: MIT
- **Default Branch**: main
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 0
- **Created**: 2022-01-06
- **Last Updated**: 2026-07-26
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
# React Keyframes
A React component for creating frame-based animations.

## Example
The following example will render contents in `Frame` one at a time every 500 ms.
```js
import { Keyframes, Frame } from "react-keyframes";
function MyComponent() {
return (
This
This is
This is animated.
);
}
```
## Usage
Firstly, install the package:
```js
$ npm install --save react-keyframes
```
## API
### Keyframes
**``**
- Use `import { Keyframes } from 'react-keyframes'`
- The `component` prop specifies what component `Keyframes` renders as. You can pass the following:
- a React Component (i.e. ``)
- a React Fragment (i.e. ``)
- an HTML tag represented as a string (i.e. ``)
- If nothing is passed, it defaults to "span"
- Any additional, user-defined properties will become properties of the rendered component.
- It must have only `Frame` as children.
- Example:
```js
import { Component } from 'react';
import { Keyframes, Frame } from 'react-keyframes';
class extends Component {
render () {
return
foo
bar
;
}
}
```
### Frame
**``**
- Use `import { Frame } from 'react-keyframes'`
- The `duration` prop specifies the length of time that a frame should show (millisecond).
- You have to put `Frame` in the order you want them animated.
- Example:
```js
import { Component } from 'react';
import { Keyframes, Frame } from 'react-keyframes';
class extends Component {
render () {
return
foo
bar
;
}
}
```
## Contributing
- Run `npm run build` to transpile the source code
- Before submitting a PR, please run `npm run test`
- Please [be welcoming](http://contributor-covenant.org/)
## Author
Naoyuki Kanezawa ([@nkzawa](https://twitter.com/nkzawa)) - [Vercel](https://vercel.com)