# jss-keyframes

> Helper for generating keyframes with a unique id in jss

Latest version **0.1.0** (published 2018-08-04) · MIT license · 0 weekly downloads

## Install

```sh
npm install jss-keyframes
pnpm add jss-keyframes
yarn add jss-keyframes
bun add jss-keyframes
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.0 |
| Published | 2018-08-04 |
| First published | 2018-08-04 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 25.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Henri Beck |
| Maintainers | henribeck |
| Keywords | jss, keyframes, helper, unique |

## Links

- npm: https://www.npmjs.com/package/jss-keyframes
- Repository: https://github.com/cssinjs/jss-keyframes
- npm.io page: https://npm.io/package/jss-keyframes

## Dependencies (1)

- [warning](https://npm.io/package/warning.md) ^4.0.1

## Alternatives

- [@sindresorhus/slugify](https://npm.io/package/@sindresorhus/slugify.md) — 3.7M weekly downloads
- [solid-js](https://npm.io/package/solid-js.md) — 2.7M weekly downloads
- [expo-glass-effect](https://npm.io/package/expo-glass-effect.md) — 2.5M weekly downloads
- [nanoassert](https://npm.io/package/nanoassert.md) — 780.8K weekly downloads
- [@ffmpeg/ffmpeg](https://npm.io/package/@ffmpeg/ffmpeg.md) — 529.5K weekly downloads

## Recent versions

- 0.1.0 (latest) — 2018-08-04

## README

# jss-keyframes

Helper for generating keyframes with a unique id in jss

## Installation

> yarn add jss-keyframes

## Usage

```js
import keyframes from 'jss-keyframes';

const animationName = keyframes({
  from: { transform: 'scale(1)' },
  to: { transform: 'scale(0)' },
});
```

The keyframes function return the name of the animation.

## Options

The keyframes function accepts a second object for some options.

```js
type Options = {
  // Jss instance to be used
  // It will generate a separate stylesheet for every instance
  jss: Jss
  // A name to better identify the animation
  // Example: { name: 'button' } would return button-1
  // This option will default to animation 
  name: string
}
```

---
_Source: https://npm.io/package/jss-keyframes · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
