1.0.2 • Published 2 years ago

react-transition-animation v1.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

react-transition-animation

NPM JavaScript Style Guide

Install

npm install --save react-transition-animation

Usage

import React, { Component } from 'react';
import styled, { keyframes } from 'styled-components';
import { fadeIn } from 'react-transition-animation';

const animation = keyframes`${fadeIn}`;
const FadeIn = styled.h1`
  animation: 1s ${animation};
`;

class Example extends Component {
  render() {
    return <FadeIn>FadeIn Example 😄</FadeIn>;
  }
}

License

MIT © a-kawasumi