All Projects β†’ bluebill1049 β†’ React Simple Animate

bluebill1049 / React Simple Animate

Licence: mit
🎯 React UI animation made easy

Programming Languages

typescript
32286 projects
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to React Simple Animate

React Move
React Move | Beautiful, data-driven animations for React
Stars: ✭ 6,395 (+293.3%)
Mutual labels:  transition-animation, animate
Dynamic.css
πŸš€ Awesome Library of CSS3 animations πŸŽ‰
Stars: ✭ 38 (-97.66%)
Mutual labels:  animate, keyframes-animation
Lottie Ios
An iOS library to natively render After Effects vector animations
Stars: ✭ 22,295 (+1271.16%)
Mutual labels:  transition-animation
Ibanimatable
Design and prototype customized UI, interaction, navigation, transition and animation for App Store ready Apps in Interface Builder with IBAnimatable.
Stars: ✭ 8,585 (+427.98%)
Mutual labels:  transition-animation
Korge
KorGE Game Engine. Multiplatform Kotlin Game Engine
Stars: ✭ 780 (-52.03%)
Mutual labels:  animate
30 Swift Projects In 30 Days
This is the demos to show 30 demos finishes in 30 days (or more)
Stars: ✭ 527 (-67.59%)
Mutual labels:  transition-animation
Photobrowser
Elegant photo browser in Swift. ε›Ύη‰‡δΈŽθ§†ι’‘ζ΅θ§ˆε™¨γ€‚
Stars: ✭ 975 (-40.04%)
Mutual labels:  transition-animation
Ngx Page Scroll
Animated scrolling functionality for angular written in pure typescript
Stars: ✭ 422 (-74.05%)
Mutual labels:  animate
Android Material Avatar
Example of material transition (AKA Hero views) to pick your profile avatar.
Stars: ✭ 102 (-93.73%)
Mutual labels:  transition-animation
Simpleratingbar
A simple RatingBar that you can easier to customize image and animations
Stars: ✭ 1,157 (-28.84%)
Mutual labels:  animate
Popping
A collection of animation examples for iOS apps.
Stars: ✭ 5,587 (+243.6%)
Mutual labels:  transition-animation
Kotlinpleaseanimate
Kotlin, please, can you animate my views ?
Stars: ✭ 541 (-66.73%)
Mutual labels:  animate
Urmovingtransitionanimator
Moving view transition with the blurring effect between view controllers for Swift3
Stars: ✭ 44 (-97.29%)
Mutual labels:  transition-animation
React Motion Layout
🦸 Beautiful immersive React hero animations.
Stars: ✭ 509 (-68.7%)
Mutual labels:  animate
Uberux
Project that demonstrates the entire animation stack present in the Uber app (android)
Stars: ✭ 1,201 (-26.14%)
Mutual labels:  transition-animation
Hero
Elegant transition library for iOS & tvOS
Stars: ✭ 20,547 (+1163.65%)
Mutual labels:  transition-animation
Simple Slider
🎠 The 1kb JavaScript Carousel
Stars: ✭ 583 (-64.15%)
Mutual labels:  transition-animation
Swiftui Animation Library
SwiftUI Animation Library. Useful SwiftUI animations including Loading/progress, Looping, On-off, Enter, Exit, Fade, Spin and Background animations that you can directly implement in your next iOS application or project. The library also contains huge examples of spring animations such as Inertial Bounce, Shake, Twirl, Jelly, Jiggle, Rubber Band, Kitchen Sink and Wobble effects. Browse, find and download the animation that fits your needs.
Stars: ✭ 898 (-44.77%)
Mutual labels:  transition-animation
Clippathlayout
Android δΈθ§„εˆ™ε›Ύε½’εΈƒε±€
Stars: ✭ 104 (-93.6%)
Mutual labels:  transition-animation
Compose Shared Element
Experiment with SharedElement transition in Jetpack Compose, inspired by Flutter Hero widget.
Stars: ✭ 102 (-93.73%)
Mutual labels:  transition-animation

React Simple Animate Logo - UI Animation Made Simple

React Simple Animate

React UI animation made easy

npm downloads npm npm Coverage Status

Features

  • Animation from style A to B
  • CSS keyframes animation
  • Chain up animation sequences
  • Tiny size without other dependency

Install

$ npm install react-simple-animate

Docs

Quickstart

Components

import React from "react";
import { Animate, AnimateKeyframes, AnimateGroup } from "react-simple-animate";

export default () => (
  <>
    {/* animate individual element. */}
    <Animate play start={{ opacity: 0 }} end={{ opacity: 1 }}>
      <h1>React simple animate</h1>
    </Animate>
    
    {/* animate keyframes with individual element. */}
    <AnimateKeyframes
      play
      iterationCount="infinite"
      keyframes={["opacity: 0", "opacity: 1"]}
    >
      <h1>React simple animate with keyframes</h1>
    </AnimateKeyframes>
    
    {/* animate group of animation in sequences */}
    <AnimateGroup play>
      <Animate start={{ opacity: 0 }} end={{ opacity: 1 }} sequenceIndex={0}>
        first
      </Animate>
      <Animate start={{ opacity: 0 }} end={{ opacity: 1 }} sequenceIndex={1}>
        second
      </Animate>
      <Animate start={{ opacity: 0 }} end={{ opacity: 1 }} sequenceIndex={2}>
        third
      </Animate>
    </AnimateGroup>
  </>
);

Hooks

import react from 'react';
import { useAnimate, useAnimateKeyframes, useAnimateGroup } from 'react-simple-animate';

export const useAnimateExample = () => {
  const { style, play } = useAnimate({ start: { opacity: 0 }, end: { opacity: 1 } });
  useEffect(() => play(true), []);
  
  return <div style={style}>useAnimate</div>;
};

export const useAnimateKeyframesExample = () => {
  const { style, play } = useAnimateKeyframes({ 
    keyframes: ['opacity: 0', 'opacity: 1'], 
    iterationCount: 4 
  });
  useEffect(() => play(true), []);
  
  return <div style={style}>useAnimate</div>;
};

export const useAnimateGroup = () => {
  const { styles = [], play } = useAnimateGroup({
    sequences: [
      { start: { opacity: 1 }, end: { opacity: 0 } },
      { start: { background: "red" }, end: { background: "blue" } }
    ]
  });
  useEffect(() => play(true), []);

  return {styles.map(style => <div style={style}>useAnimateGroup</div>)};
};

Sponsors

Thank you very much for those kind people with their sponsorship to this project.

@sayav @lemcii @washingtonsoares @lixunn @SamSamskies @peaonunes @wilhelmeek @iwarner @joejknowles @chris-gunawardena @Tymek @Luchanso @vcarel @gragland @tjshipe @krnlde @msutkowski @mlukaszczyk

Contributors

This project exists thanks to all the people who contribute. [Contribute].

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].