Skip to content

Instantly share code, notes, and snippets.

@didacus
Created February 4, 2019 17:21
Show Gist options
  • Save didacus/3b82ef7697ad65779ed41575db8b9533 to your computer and use it in GitHub Desktop.
Save didacus/3b82ef7697ad65779ed41575db8b9533 to your computer and use it in GitHub Desktop.
Framer X - Chaining animations
export const ScaledAwait: Override = () => {
return {
scale: data.scale,
onTap: async () => {
await animate.spring(data.scale, 0.5).finished
await animate.spring(data.scale, 1.5).finished
await animate.spring(data.scale, 0.5).finished
console.log('finished!')
},
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment