Thursday, September 14, 2023
HomeReactProduce Smooth Sequenced Animations with react-native-stagger

Produce Smooth Sequenced Animations with react-native-stagger


The react-native-stagger part makes it very easy to coordinate smooth staggered computer animations in React Indigenous.

Powered by Renovated, it makes it possible for native-performance computer animations at 60-120 FPS throughout iphone, Android, as well as Internet.

The stagger part enables you to stimulate the going into as well as leaving of React Indigenous sights as well as parts with complete control over period, hold-up, instructions as well as computer animation contours. It’s ideal for onboarding circulations, vibrant galleries, slide carousels, as well as any kind of area you require sequenced computer animation.

Just how to utilize it:

1. Mount the needed react-native-reanimated parts and afterwards import ‘stagger’ right into your React Indigenous application:

 npm set up @animatereactnative/ stagger
 import {Surprise} from '@animatereactnative/ stagger';

2. A straightforward instance showcasing just how ‘stagger’ jobs:

 export feature Instance() {

.
 {-1} 

. going into ={() => ZoomInEasyDown.springify()}

. leaving= {
(
)= > FadeOutDown.springify()}

. design= {
{
. flexDirection: 'row',

.
flexWrap:' cover', 
. justifyContent:' facility', 
.
>
space:
12, 
.}<.}

.
> 
. Any kind of material below ... 
.  
.); 
.}

3. Offered part props.

// any kind of part that you  want to use

.

kids,

. 
.// period in between components 
.
stagger = 50,

.

.// 1: leading
to lower 
.// -1: base to leading 
.
enterDirection = 1,

.
exitDirection= -1, 
.

.

// period 
.
period= 400

,

. 
.// sight designs 
.
design, 
. 
./>/ enter/exit features 
. going into=( )=
> FadeInDown.duration (400> ), 
. leaving=( )=
> FadeOutDown.duration(

400)
, 
.

.// preliminary hold-up 
.
initialEnteringDelay= 0, 
. initialExitingDelay= 0,

Sneak Peek:

Download And Install Information:

Writer: animate-react-native

Live Demonstration: Sight The Demonstration

Download And Install Web Link: Download And Install The Resource Code

Authorities Internet Site: https://github.com/animate-react-native/stagger

Permit: MIT

RELATED ARTICLES

Most Popular

Recent Comments