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

react-anim-kit

Package Overview
Dependencies
Maintainers
1
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-anim-kit

Contains animation helpers for React

  • 1.0.19
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
23
decreased by-48.89%
Maintainers
1
Weekly downloads
 
Created
Source

react-anim-kit

pipeline status

View the docs here: https://fredrikoseberg.github.io/react-anim-kit-docs

Introduction

This library contains animation helpers based mainly on the CSS properties opacity and transform. Because of how the browser handles rendering, these properties are best suited to handle ui animations when manipulating css properties - see the full overview here.

Components

<FadeIn left by={300}>
    <div>Some content</div>
</FadeIn>

Fades in all of it's children. See full documentation here.

<AnimateOnMount start="start-class" enter"enter-class" leave="leave-class" show={show}>
    <div>content</div>
</AnimateOnMount>

Applies classes to animate it's children on entering and leaving the DOM. See full documentation here.

<AnimateHeight>
    <div>Content</div>
</AnimateHeight>

Uses transform: scaleY to fake height animation. This component can be tricky to use, but worth it if you want performant animations. See an article describing usage here

See full documentation here.

<FadeInOut left by={300} show={show}>
    <div>Some content</div>
</FadeInOut>

Fades in all of it's on mounting. Fades out all of it's children on leaving the DOM.

<AnimateHeightBySacrificingPerf shouldChange={open}>
    <div>Some content</div>
</AnimateHeightBySacrificingPerf>

Adjust the height of the container based on the content. This uses the height css property and is bad for perforamance - use AnimateHeight instead if you can. See full documentation here.

FAQs

Package last updated on 07 Apr 2020

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

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