Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

styled-animate

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

styled-animate - npm Package Compare versions

Comparing version 0.0.6 to 0.0.7

2

package.json
{
"name": "styled-animate",
"version": "0.0.6",
"version": "0.0.7",
"description": "",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

@@ -21,4 +21,23 @@ # Example Usage

Or, using one of the convenient helper functions:
```javascript
import withAnimate from 'styled-animate'
const Foo = styled.div`
/* some styles here */
`
const AnimatedFoo = fadeInOut(Foo, '500ms linear')
// then in a render function...
<AnimatedFoo in={this.state.showFoo} />
```
Using the "animate" key will produce a react-transition-group <Transition> component that animates opacity from 0 to 1 on mount and from 1 to 0 on unmount, both animations lasting 500ms (parsed from the "transition" key). You may also use seconds as the unit of measure for the transition timing, like `transition: 2s ease-in`.
# Test Drive in Codesandbox.io!
https://codesandbox.io/s/20zqow283n
# API

@@ -37,2 +56,7 @@

## Helper Methods
TODO
Right now I have fadeInOut, fadeIn, and fadeOut. Many more to come! And documentation that doesn't suck!
# Compatible components

@@ -46,3 +70,3 @@

Allow passing an array of properties to animate, and allow passing different values for "entering" and "exiting" phases of animation:
* Allow passing an array of properties to animate, and allow passing different values for "entering" and "exiting" phases of animation:

@@ -61,1 +85,5 @@ ```javascript

```
* Automatically apply the animation to all children of a component
* Easily compose helper function animations together
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc