0.9.0 • Published 2 years ago

reaction-react v0.9.0

Weekly downloads
-
License
-
Repository
github
Last release
2 years ago

Add fading reactions to an element in your react projects.

Easy and simple to use 😊

Reaction gif

Simply import or require the component like so:

import { Reaction } from "reaction-react";

And wrap it around the element you want to apply the animation to like so:

<Reaction maxExtent={300} duration={2000} amplitude={2}>
  <span style={{ cursor: "pointer", fontSize: "30px" }}>🔥</span>
</Reaction>

Props

PropertyDescriptionDefaulttypeUnit
maxExtentThis refers to the maximum height the element will animate to.300numberpx
durationThis is the time it will take for the element to reach the maxExtent2000numbermilliseconds
amplitudeSet the extent to with the element animates horizontally while going up to maxExtent. Use 0 to remove this effect2numbermilliseconds
itemsBreakPointThis adjust the way reaction elemnents clear to unclog the DOM. After a breakpoint, all elements clear after the duration set above and new elements can be added30number-
0.9.0

2 years ago

0.8.0

2 years ago

0.7.0

2 years ago

0.6.0

2 years ago

0.5.0

2 years ago

0.4.0

2 years ago

0.3.0

2 years ago

0.2.0

2 years ago

0.1.0

2 years ago