Skip to content

Instantly share code, notes, and snippets.

@josefrichter
Created September 28, 2021 14:38
Show Gist options
  • Save josefrichter/ed81c41ceb40d4d20ef6c717c0e7b37e to your computer and use it in GitHub Desktop.
Save josefrichter/ed81c41ceb40d4d20ef6c717c0e7b37e to your computer and use it in GitHub Desktop.
// doesn't throw error, but doesn't work:
const x = useTransform(
contentOffsetY,
[0, -400],
[0, endX],
[
{
clamp: false,
ease: [0.5],
},
]
)
// this works, but I need the easing
const x = useTransform(
contentOffsetY,
[0, -400],
[0, endX],
{
clamp: false,
}
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment