Last active
April 11, 2021 15:41
-
-
Save boriscy/15b93f496e459ca03e3b05163460079e to your computer and use it in GitHub Desktop.
CSS tips
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
/*Rotation*/ | |
.box { | |
animation: rotate 1s ease infinite; | |
} | |
@keyframes rotate { | |
0% { | |
-webkit-transform: rotate(0); | |
transform: rotate(0); | |
} | |
100% { | |
-webkit-transform: rotate(360deg); | |
transform: rotate(360deg); | |
} | |
} |
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
.center { | |
display: flex; | |
justify-content: center; | |
align-items: center; | |
} | |
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
.grid { | |
display: grid; | |
grid-template-columns: 1fr 200px 1fr; | |
grid-template-rows: 100px 200px; | |
} | |
/**/ | |
/*Even align of items*/ | |
.container { | |
justify-content: space-evenly; | |
justify-items: center; | |
align-content: space-evenly; | |
align-items: center; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment