Skip to content
R

React Transition State

Zero dependency React transition state machine

by szhsinFree

#3491in Utilities
0In stores

Description

react-transition-state is a small React library for animating components in and out of the page with a hook. It is a transition state machin…

Highlights

  • Hook-based transition state machine for React
  • Works with CSS transitions and animations
  • No dependencies and no derived state
  • Switch transitions with useTransitionState and useTransitionMap
  • About 650 bytes after tree-shaking

Ratings & Reviews

No ratings yet

Be the first to rate React Transition State.

People also visit

V

vercel-react-view-transitions

Native browser animations for React UI state changes

AI Skills
Get
R

react-animate-height

Lightweight React component for animating height using CSS transitions

UI Libraries
Launch
S

SSGOI

animated page transition for major ssr frameworks and browsers, including Safari

Utilities
Launch
N

Next Transition Router

Easily add animated transitions between pages

Utilities
Launch
R

React Nprogress

A React primitive for building slim progress bars

Utilities
Launch
R

react-flip-move

Effortless animation between DOM changes (eg

UI Libraries
Launch

React Transition State FAQ

What is react-transition-state?

A small, zero-dependency React library for animating component transitions with a hook.

How does it differ from React Transition Group?

The README says it uses one state instead of derived state from an in prop, and each state change causes at most one extra render.

Does it work with my CSS setup?

The README includes examples for plain CSS, styled-components and Tailwind CSS.

How big is it?

The README says about 650 bytes after tree-shaking.

How do I install it?

Install it from npm, as shown in the install section of the README.

What are the best React Transition State alternatives?

Popular alternatives to React Transition State include SSGOI, Next Transition Router and React Nprogress. See all React Transition State alternatives

Developer Stuff

Badges