Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

✌️ A spring physics based React animation library

License

NotificationsYou must be signed in to change notification settings

pmndrs/react-spring

Repository files navigation

Warp is built for coding with multiple AI agents




react-spring

A spring-physics first animation library
giving you flexible tools to confidently cast your ideas


Chat on Discord


react-spring is a cross-platform spring-physics first animation library.

It's as simple as:

conststyles=useSpring({from:{opacity:0},to:{opacity:1}})<animated.divstyle={styles}/>

Just a small bit about us:

  • Cross-Platform: We supportreact-dom,react-native,react-three-fiber,react-konva &react-zdog.
  • Versatile: Be declarative with your animations or if you prefer, imperative.
  • Spring-Physics First: By default animation use springs for fluid interactivity, but we support durations with easings as well.

There's a lot more to be had! Give it a try and find out.

Getting Started

⚡️ Jump Start

# Install the entire librarynpm install react-spring# or just install your specific target (recommended)npm install @react-spring/web
import{animated,useSpring}from'@react-spring/web'constFadeIn=({ isVisible, children})=>{conststyles=useSpring({opacity:isVisible ?1 :0,y:isVisible ?0 :24,})return<animated.divstyle={styles}>{children}</animated.div>}

It's as simple as that to create scroll-in animations when value ofisVisible is toggled.

📖 Documentation and Examples

More documentation on the project can be foundhere.

Pages contain their ownexamples which you can check out there, oropen in codesandbox for a more in-depth view!


📣 What others say

Used by

Andmany others...

Backers

Thank you to all our backers! 🙏 If you want to join them here, then consider contributing to ourOpencollective.

Contributors

This project exists thanks to all the people who contribute.


[8]ページ先頭

©2009-2025 Movatter.jp