Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
CSS - fade-in/fade-out transition
.m-fadeOut {
visibility: hidden;
opacity: 0;
transition: visibility 0s linear 300ms, opacity 300ms;
.m-fadeIn {
visibility: visible;
opacity: 1;
transition: visibility 0s linear 0s, opacity 300ms;

This comment has been minimized.

Copy link

@marquesm91 marquesm91 commented Mar 16, 2018

Simple and beautiful!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment