GitHub Hot Board

GitHub Hot Board · Arquivo do repositório

pmndrs/react-spring

A spring physics based React animation library (Esta descrição vem do próprio repositório.)

Dados de October 27pmndrs

Melhor colocação

#227

Histórico · TypeScript por idioma

29K

Total de estrelas

1.2K

Total de forks

0

Dias nos rankings (30 d)

Estado do projetoLicença: MITÚltimo push: October 27Issues abertos (PR incl.): 78

Coletado desde 2026-10-25; desconhecido = ainda não coletado

Coloque o emblema no seu README · pmndrs/react-spring[![Coloque o emblema no seu README](https://git.vaiox.xyz/api/badge/pmndrs/react-spring.svg)](https://git.vaiox.xyz/pt/repo/pmndrs/react-spring)

Badge · 任何仓库都可以挂 —— 未上榜的仓库显示灰章,上完榜会自动点亮。

<a href="https://git.vaiox.xyz/pt/repo/pmndrs/react-spring"><img src="https://git.vaiox.xyz/api/badge/pmndrs/react-spring.svg" alt="Coloque o emblema no seu README" height="20"></a>

Documentação do projeto


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:

const styles = useSpring({
  from: {
    opacity: 0
  },
  to: {
    opacity: 1
  }
})

<animated.div style={styles} />

Just a small bit about us:

  • Cross-Platform: We support react-dom and react-three-fiber.
  • 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 target you need
npm install @react-spring/web
# or, for react-three-fiber
npm install @react-spring/three
import { animated, useSpring } from '@react-spring/web'

const FadeIn = ({ isVisible, children }) => {
  const styles = useSpring({
    opacity: isVisible ? 1 : 0,
    y: isVisible ? 0 : 24,
  })

  return <animated.div style={styles}>{children}</animated.div>
}

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

📖 Documentation and Examples

More documentation on the project can be found here.

Pages contain their own examples which you can check out there, or open in codesandbox for a more in-depth view!


📣 What others say

Used by

And many others...

Backers

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

Contributors

This project exists thanks to all the people who contribute.

Colocações atuais

Evolução em 30 dias

Sem registros nos últimos 30 dias.

Mais de pmndrs

Projetos similares · temas compartilhados

← Voltar aos rankings

GitHub Hot BoardMáquina do tempoDiscover