New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

react-animated-enter

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-animated-enter

Higher order component that runs an animation when component entering the viewport.

latest
Source
npmnpm
Version
1.0.1
Version published
Maintainers
1
Created
Source

react-animated-enter

Higher order component that runs an animation when component entering the viewport.

Installation

npm install react-animated-enter --save

Usage

As a higher order component.
import React, { Component } from 'react';
import animatedEnter from 'react-animated-enter';

class MyComponent extends Component {
    // Component content
}

export default animatedEnter(type, duration)(MyComponent);
As a decorator

Requires babel-plugin-transform-decorators-legacy

import React, { Component } from 'react';
import animatedEnter from 'react-animated-enter';

@animatedEnter(type, duration)
export default class MyComponent extends Component {
    // Component content
}

Parameters

NameTypeDefaultDescription
typeString'fadeIn'Type of an animation
durationNumber1Duration of animation (in seconds)

Types list

To see demos of animations look here

  • bounceIn,
  • bounceInDown,
  • bounceInUp,
  • bounceInRight,
  • bounceInLeft,
  • fadeIn,
  • fadeInUp,
  • fadeInUpBig,
  • fadeInDown,
  • fadeInDownBig,
  • fadeInLeft,
  • fadeInLeftBig,
  • fadeInRight,
  • fadeInRightBig,
  • flipInX,
  • flipInY,
  • lightSpeedIn,
  • rotateIn,
  • rotateInDownLeft,
  • rotateInDownRight,
  • rotateInUpLeft,
  • rotateInUpRight,
  • slideInDown,
  • slideInLeft,
  • slideInRight,
  • slideInUp,
  • rollIn,
  • zoomIn,
  • zoomInDown,
  • zoomInLeft,
  • zoomInRight,
  • zoomInUp

FAQs

Package last updated on 27 Dec 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