New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

animate-components

Package Overview
Dependencies
Maintainers
1
Versions
108
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

animate-components

Animation components for React

0.2.6
Source
npm
Version published
Maintainers
1
Created
Source

animate-components

Elemental components for animation in React

Tested on Chrome, Safari and Firefox.

Install

npm install animate-components --save

Usage

import React, { Component } from "react";

import { Swing } from "animate-components";

class App extends Component {
  render() {
    return (
      <div>
        <Swing>
          <h1>Hello</h1>
        </Swing>
      </div>
    );
  }
}

Animations

Below is a list of all available animations.

Bounce

  • Bounce
  • BounceUp
  • BounceRight
  • BounceLeft
  • BounceDown

Fade

  • FadeIn
  • FadeInUp
  • FadeInRight
  • FadeInLeft
  • FadeInDown
  • FadeInUpBig
  • FadeInLeftBig
  • FadeInRightBig

Flip

  • Flip
  • FlipX
  • FlipY

LightSpeed

  • LightOut
  • LightIn

Rotate

  • RotateIn
  • RotateRight
  • RotateLeft
  • RotateUpRight
  • RotateUpLeft

Slide

  • SlideUp
  • SlideDown
  • SlideLeft
  • SlideRight
  • SlideExpandUp

Special

  • Flash
  • RollOut
  • RollIn
  • Rubber
  • Swing
  • Zoom
  • Hinge
  • Pulse
  • ExpandUp
  • Entrance
  • Hatch

API

Props

duration Type: string Default: 1s

timingFunction Type: string Default: ease

delay Type: string Default: 0s

direction Type: string Default: normal

iterations Type: string Default: 1

backfaceVisibility Type: string Default: visible

Example

<BounceUp duration="2s" timingFunction="ease-in" iterations="3">
  <h1>Hello World</h1>
</BounceUp>

Contributing

Here is the guide.

More animations coming soon 😃 !!

Keywords

react

FAQs

Package last updated on 28 Mar 2017

Did you know?

Socket

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.

Install

Related posts