Skip to content

Instantly share code, notes, and snippets.

@patilswapnilv
Created June 30, 2015 06:54
Show Gist options
  • Select an option

  • Save patilswapnilv/dbfe5c09e27fce88893c to your computer and use it in GitHub Desktop.

Select an option

Save patilswapnilv/dbfe5c09e27fce88893c to your computer and use it in GitHub Desktop.
Layers on hover
button Hover me!
html,
body {
width: 100%;
height: 100%;
}
body {
background: #EFFFC8;
}
button {
cursor: pointer;
display: block;
width: 150px;
height: 60px;
line-height: 50px;
padding: 0;
margin: 0;
box-sizing: border-box;
font-family: 'PT Sans Narrow', sans-serif;
text-transform: uppercase;
font-weight: bold;
font-size: 22px;
letter-spacing: 1px;
position: fixed;
top: 50%;
left: 50%;
margin-top: -30px;
margin-left: -75px;
color: #363537;
border: 5px solid #363537;
background: #85CB33;
box-shadow: 0 0 0 #ED7D3A, 0 0 0 #EF2D56, 0 0 0 #2FBF71;
transition: all .15s ease-in;
&:hover {
margin-top: -37.5px;
margin-left: -82.5px;
box-shadow: 5px 5px 0 #ED7D3A, 10px 10px 0 #EF2D56, 15px 15px 0 #2FBF71;
}
}
@patilswapnilv
Copy link
Author

👍

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