@react-spring/shared

pmndrs
esm cjs
@react-spring/shared JS library on GitHub @react-spring/shared JS library on npm Download @react-spring/shared JS library

Globals and shared modules

Version 10.0.1 License MIT
@react-spring/shared has no homepage
@react-spring/shared JS library on GitHub
@react-spring/shared JS library on npm
Download @react-spring/shared JS library
Keywords
animatedanimationhooksmotionreactreact-nativespringtypescriptvelocity
INSTALL
Type:
Version:
<script type="module"> import reactSpringshared from 'https://cdn.jsdelivr.net/npm/@react-spring/shared@10.0.1/+esm' </script>
Learn more

@react-spring/shared

Various helpers used by @react-spring/core and/or the platform targets (eg: @react-spring/web).

Notable exports:

  • The Globals object (updated with its assign method)
  • The createStringInterpolator function
  • The createInterpolator function
  • The normalizeColor function
  • The FrameLoop class
  • The colors object
  • The colorToRgba function
  • The FluidValue class and related functions