Javascript – Trigger animation when another starts in motion
I am using motion to animate a background color whenever the variable colorHex changes, which works nicely. I would also like to scale up and back down each time the color changes. For this I've used scale: [1, 2, 1]…