# infinite-loop-animation

> Dynamic looping of React animations. Define an animaton with urls, specify a duration, and the animation will repeat for that infinite iterations. You can not change the number of iterations programmatically.

Latest version **1.0.5** (published 2019-10-20) · MIT license · 0 weekly downloads

## Install

```sh
npm install infinite-loop-animation
pnpm add infinite-loop-animation
yarn add infinite-loop-animation
bun add infinite-loop-animation
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.5 |
| Published | 2019-10-20 |
| First published | 2018-10-28 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 5.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Youssef Selkani |
| Maintainers | usfslk |
| Keywords | animation, loop, react |

## Links

- npm: https://www.npmjs.com/package/infinite-loop-animation
- Repository: https://github.com/usfslk/infiniteLoop
- Homepage: https://github.com/usfslk/infiniteLoop#readme
- Issues: https://github.com/usfslk/infiniteLoop/issues
- npm.io page: https://npm.io/package/infinite-loop-animation

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 1.0.5 (latest) — 2019-10-20
- 1.0.4 — 2018-10-28
- 1.0.3 — 2018-10-28
- 1.0.2 — 2018-10-28
- 1.0.1 — 2018-10-28
- 1.0.0 — 2018-10-28
- 0.0.9 — 2018-10-28
- 0.0.8 — 2018-10-28
- 0.0.7 — 2018-10-28

## README

## Easily make and manage React animation loops
Dynamic looping of image animations in React. Define an animation with urls or paths, specify a duration, and the animation will repeat for that infinite iterations. You can not change the number of iterations programmatically.

## Demo
https://infiniteloop-b377c.firebaseapp.com/

## Usage

    import  React, { Component } from  "react";    
    import  InfiniteLoop  from  'infinite-loop-animation';    
    
    class  App  extends  Component {
    render() {
      return (    
        <div>    
          <InfiniteLoop  data={urls}  background={bg}  duration={1200}  size={65}  />
        </div>
        );    
      }    
    }
    
    const  urls  = [    
    "https://image.flaticon.com/icons/svg/413/413850.svg",    
    "https://image.flaticon.com/icons/svg/413/413826.svg",    
    "https://image.flaticon.com/icons/svg/413/413808.svg",
    ];
       
    const  bg  = ["http://samherbert.net/svg-loaders/svg-loaders/puff.svg"];
   
    export  default  App;


# Properties

#### data
An array of images
#### background
Background image path or url
#### duration
Time between each frame in milliseconds
#### size
Recommended values between 25 and 250

## License

MIT

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