Skip to content

Using multiple values in useTrail fails to animate #1118

@tomdohnal

Description

@tomdohnal

🐛 Bug Report

I want to animate a list of items using opacity and transform: translate(...). However, it only animates opacity correctly. As for transform: translate(...), it only animates the first item. It applies for other values, too. (I tried animating opacity and color and an anallogical glitch occurs.)

The very same code works just fine in v8 (just change the dependency version in the attach CodeSandbox to see it in action).

To Reproduce

See the Link to repro section

Expected behavior

Both values should ve animated smoothly.

Link to repro (highly encouraged)

https://codesandbox.io/s/quizzical-pare-p6cxz

Click the "animate" button to trigger the animation

Environment

  • react-spring v9.0.0.-rc3
  • react v16.12.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind: bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions