Created
September 3, 2021 16:25
-
-
Save NyaGarcia/58669e5f61fa05e468864ba61a9bbf18 to your computer and use it in GitHub Desktop.
Awesome draggable div CSS rules
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.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