![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
react-awesome-reveal
Advanced tools
React components to add reveal animations using Intersection Observer API and CSS Animations.
React Awesome Reveal is a library for React apps written in TypeScript that adds reveal animations using the Intersection Observer API to detect when the elements appear in the viewport. Animations are provided by Animate.css to benefit from hardware acceleration.
To add this package as a dependency to your app, simply run
npm install react-awesome-reveal --save
or, if you are using Yarn (as I strongly suggest):
yarn add react-awesome-reveal
You must also include Animated.css in your HTML file:
<head>
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/3.7.2/animate.min.css"
/>
</head>
Import effects from React Awesome Reveal to your React component, for example the Fade
effect:
import { Fade } from 'react-awesome-reveal';
Then place the following code somewhere in your render
method:
<Fade>
<p>I will gently appear as I enter the viewport</p>
</Fade>
The effects currently supported are Bounce
, Fade
, Flash
, Flip
, HeadShake
, HeartBeat
, JackInTheBox
, Jello
, LightSpeed
, Pulse
, Rotate
, RubberBand
, Shake
, Slide
, Swing
, Tada
, Wobble
and Zoom
.
You can pass the following properties to the animation components to customize the behavior:
direction
: can be "top"
, "left"
, "bottom"
or "right"
. If no direction is passed, the animation happens in place (default to undefined
)delay
: the amount of time to wait before the animation starts. Can be a number (in milliseconds) or one of the following presets: "1s"
, "2s"
, "3s"
, "4s"
, "5s"
. Default to undefined
, meaning that no delay will be presentfraction
: number between 0
and 1
indicating how much an element should be in viewport before triggering the animation (default to 0
)speed
: affects the animation duration. Can be a number (in milliseconds) or one of the following presets: "slower"
(3s), "slow"
(2s), "fast"
(800ms) or "faster"
(500ms). If not specified, the animation lasts 1s.triggerOnce
: specifies if the animation should run only once or everytime an element enters/exits/re-enters the viewport (default to false
)Project source code is licensed under the MIT license. You are free to fork this repository, edit the code, share and use it both for non-commercial and commercial purposes.
FAQs
React components to add reveal animations using the Intersection Observer API and CSS Animations.
The npm package react-awesome-reveal receives a total of 29,014 weekly downloads. As such, react-awesome-reveal popularity was classified as popular.
We found that react-awesome-reveal demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.