How to use the @react-spring/core.useSpring function in @react-spring/core

To help you get started, we’ve selected a few @react-spring/core examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github toofpaste / Invisible-Thread-Website / src / helpers / useYScroll.js View on Github external
  const [{ scrollSpring }, setScrollSpring] = useSpring(() => ({ scrollSpring: 0, config: config.molasses }));

@react-spring/core

The platform-agnostic core of `react-spring`

MIT
Latest version published 3 months ago

Package Health Score

94 / 100
Full package analysis