Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

A React component that handles animating elements as they are created

NotificationsYou must be signed in to change notification settings

kimmelsg/cj-animate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

##Animate

###Install

npminstall @kimmel/animate--save

###Motivation

We needed a way to easily fade in components when they are added to the page. Most animation libraries seemed to do way too much and were complicated.The way it works is simple. It setstransition: all 1000ms ease-in-out by default, which can be changed. Extra CSS is applied with thestart andend props (see props below).You can transition scale, opacity, whatever else you want.

###Example

importAnimatefrom'@kimmel/animate'<Animatestart={{opacity:0}}end={{opacity:1}}>{this.state.items.map((item,index)=><Testkey={index}size={3}{...item}/>)}</Animate>

###Props

###Problems

You can't trigger animations on hover or anything like that. It'll probably be added later when we need it. We're open to pull requests though :)

About

A React component that handles animating elements as they are created

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp