Skip to content

Commit e2cd2d2

Browse files
authored
Merge pull request pmndrs#523 from christiannwamba/patch-1
Update basics.mdx
2 parents 0b09e56 + 8f41889 commit e2cd2d2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

documentation/basics.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -246,10 +246,10 @@ return (
246246
<animated.div
247247
style={{
248248
transform: props.x
249-
.interpolate(
250-
[0, 0.25, 0.35, 0.45, 0.55, 0.65, 0.75, 1],
251-
[1, 0.97, 0.9, 1.1, 0.9, 1.1, 1.03, 1]
252-
)
249+
.interpolate({
250+
range: [0, 0.25, 0.35, 0.45, 0.55, 0.65, 0.75, 1],
251+
output: [1, 0.97, 0.9, 1.1, 0.9, 1.1, 1.03, 1]
252+
})
253253
.interpolate(x => `scale(${x})`)
254254
}} />
255255
)

0 commit comments

Comments
 (0)