Skip to content

Instantly share code, notes, and snippets.

@emmabostian
Created January 12, 2020 09:47
Show Gist options
  • Save emmabostian/6003e4e46a60c2d9b485eebf8408e66b to your computer and use it in GitHub Desktop.
Save emmabostian/6003e4e46a60c2d9b485eebf8408e66b to your computer and use it in GitHub Desktop.
const fadingAnimation = useTransition(modalVisible, null, {
from: { opacity: 0, transform: "translateY(-40px)" },
enter: { opacity: 1, transform: "translateY(0px)" },
leave: { opacity: 0, transform: "translateY(-40px)" }
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment