physics-animator 0.15.0 → 0.15.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +1 -1
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -24,7 +24,7 @@ useSpringValue(
24
24
  Or via state
25
25
 
26
26
  ```tsx
27
- const opacity = useSpringState({ initial: 0, target: 1, duration_s: 0.8 })
27
+ const { state: opacity, setTarget } = useSpringState({ initial: 0, duration_s: 0.8 })
28
28
 
29
29
  return <div style={{ opacity }} />
30
30
  ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "physics-animator",
3
- "version": "0.15.0",
3
+ "version": "0.15.1",
4
4
  "author": "haxiomic (George Corney)",
5
5
  "license": "MIT",
6
6
  "description": "A TypeScript animation system grounded in physics with three.js and react support.",