Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
R

react-morph

> 编程语言
Open source

Morphing Ui transitions made simple

2.5K stars0 likes0 views
WebsiteGitHub

About

Morphing Ui transitions made simple

React Morph ️

Morphing UI transitions made simple

Magically animates one element into another just by tagging the first and last state.

Getting Started

bash
npm install react-morph
# or
yarn add react-morph

Import the useMorph hook.

javascript
const morph = useMorph(options);

Then spread the props to the elements you want to morph.

javascript
javascript

Make sure you have just ONE element rendered at same time.

Simple Example

  1. Create two states as you normally would (HTML + CSS).
  2. Call useMorph hook.
  3. Spread the elements you want to morph with {...morph}
  4. Add and remove the element from the DOM
javascript
import React from 'react';
import { useMorph } from 'react-morph';
javascript
() => {
  // Handle toggle state as you normally would.
  const [toggle, setToggle] = useState(true);
  const morph = useMorph();

  return (
    

  );
};

Documentation

Please check the documentation.

Features

  • Simplicity
  • No hardcoded absolute positions
  • All GPU accelerated props
  • No layout or paint browser rendering

Live Demos

  • Hello world
  • Apple App Store

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

TypeScript

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言