Skip to content

Instantly share code, notes, and snippets.

@NyaGarcia
Created September 3, 2021 16:25
Show Gist options
  • Save NyaGarcia/58669e5f61fa05e468864ba61a9bbf18 to your computer and use it in GitHub Desktop.
Save NyaGarcia/58669e5f61fa05e468864ba61a9bbf18 to your computer and use it in GitHub Desktop.
Awesome draggable div CSS rules
.awesome-div {
align-items: center;
background-color: #00b2a7;
border-radius: 4px;
box-shadow: 0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.14),
0 1px 5px 0 rgba(0, 0, 0, 0.12);
color: #fff;
cursor: move;
display: flex;
font-weight: bold;
height: 150px;
justify-content: center;
text-align: center;
transition: box-shadow 0.3s;
width: 150px;
}
.awesome-div:active {
box-shadow: 0 5px 5px -3px rgba(0, 0, 0, 0.2),
0 8px 10px 1px rgba(0, 0, 0, 0.14), 0 3px 14px 2px rgba(0, 0, 0, 0.12);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment