Skip to content

Instantly share code, notes, and snippets.

@misterbailey
Created November 16, 2016 13:41
Show Gist options
  • Save misterbailey/b858148a3e6075d2f5162b6ddfcea633 to your computer and use it in GitHub Desktop.
Save misterbailey/b858148a3e6075d2f5162b6ddfcea633 to your computer and use it in GitHub Desktop.
Material Design shadows
// Shadows
.shadow-1 {
box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
transition: all 0.3s cubic-bezier(.25,.8,.25,1);
}
.shadow-2 {
box-shadow: 0 3px 6px rgba(0,0,0,0.16), 0 3px 6px rgba(0,0,0,0.23);
transition: all 0.3s cubic-bezier(.25,.8,.25,1);
}
.shadow-3 {
box-shadow: 0 10px 20px rgba(0,0,0,0.19), 0 6px 6px rgba(0,0,0,0.23);
transition: all 0.3s cubic-bezier(.25,.8,.25,1);
}
.shadow-4 {
box-shadow: 0 14px 28px rgba(0,0,0,0.25), 0 10px 10px rgba(0,0,0,0.22);
transition: all 0.3s cubic-bezier(.25,.8,.25,1);
}
.shadow-5 {
box-shadow: 0 19px 38px rgba(0,0,0,0.30), 0 15px 12px rgba(0,0,0,0.22);
transition: all 0.3s cubic-bezier(.25,.8,.25,1);
}
.shadow-1:hover, .shadow-2:hover, .shadow-3:hover, .shadow-4:hover {
box-shadow: 0 14px 28px rgba(0,0,0,0.25), 0 10px 10px rgba(0,0,0,0.22);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment