Skip to content

Instantly share code, notes, and snippets.

@dbismut
Last active April 9, 2018 21:09
Show Gist options
  • Save dbismut/b935a5899793ca238a044d780cfeab44 to your computer and use it in GitHub Desktop.
Save dbismut/b935a5899793ca238a044d780cfeab44 to your computer and use it in GitHub Desktop.
Part 3 - Classes that will animate the underlay and close icon
.page-post {
&.post-exit,
&.post-enter {
.content,
.close,
.underlay {
opacity: 0;
}
.underlay {
transition-delay: 0;
}
}
&.post-enter-started {
.content,
.underlay {
opacity: 1;
transition-delay: 100ms;
}
.close {
opacity: 0.7;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment