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

react-leave-motion

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-leave-motion

Tween library for leave element.

latest
Source
npmnpm
Version
0.1.2
Version published
Weekly downloads
11
22.22%
Maintainers
1
Weekly downloads
 
Created
Source

Overview

要素を削除したときにアニメーションするためのコンポーネントです。

Demo

demo
src

API

Exports

  • spring
  • presets
  • LeaveMotion
  • LeaveMotionItem
  • LeaveTween
  • LeaveTweenItem
  • LeaveTransitionGroup

<LeaveMotion />

Usage

<LeaveMotion itemKey="1" defaultStyle={{x: 0}} style={{x: spring(10)}}>
  {interpolatingStyle => <div style={interpolatingStyle} />}
</LeaveMotion>

<LeaveTween />

Usage

<LeaveTween itemKey="1" defaultStyle={{x: 0}} style={{x: 10}}>
  {interpolatingStyle => <div style={interpolatingStyle} />}
</LeaveTween>

bug

要素が消えきる前に同じkeyを追加するとバグりますが、 直す予定は特にありません。

Keywords

react-motion

FAQs

Package last updated on 09 Apr 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