npm.io
1.0.2 • Published 4 years ago

react-transition-animation

Licence
MIT
Version
1.0.2
Deps
0
Size
5 kB
Vulns
0
Weekly
0

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