Skip to content

Comments

[pull] main from motiondivision:main#194

Merged
pull[bot] merged 10 commits intocode:mainfrom
motiondivision:main
Jan 9, 2026
Merged

[pull] main from motiondivision:main#194
pull[bot] merged 10 commits intocode:mainfrom
motiondivision:main

Conversation

@pull
Copy link

@pull pull bot commented Jan 9, 2026

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

claude and others added 10 commits January 9, 2026 14:00
Adds a new signature to useTransform that accepts an object map of output
ranges and returns an object of motion values with the same keys:

const { opacity, x } = useTransform(inputValue, inputRange, {
  opacity: [0, 1],
  x: [100, 200]
})

The keys are captured once on first render, ensuring hooks are called in a
consistent order across renders. This allows the hook to be safely used
within loops.
Reuse the existing useTransform in a loop instead of duplicating logic.
The keys are captured once with useConstant, ensuring hooks are called
in consistent order across renders.
- Use scale [0.5, 1.5] so scale(1.5) is visible in transform
- Use opacity [0, 0.5] with clamp:false to test extrapolation
- Simplify stable values test to check output object reference
…signature-0BN2J

Add useTransform signature with motion values
@pull pull bot locked and limited conversation to collaborators Jan 9, 2026
@pull pull bot added the ⤵️ pull label Jan 9, 2026
@pull pull bot merged commit 05334c6 into code:main Jan 9, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants