A Pen by TheAnarchoX on CodePen.
Created
September 20, 2019 12:43
-
-
Save TheAnarchoX/6bb30957f9edc510049794d2f5d21996 to your computer and use it in GitHub Desktop.
YzKROrv
This file contains 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
<div id="wrapper"> | |
<div class="box">KEKKECONTENT</div> | |
<div class="box">KEKKECONTENT</div> | |
<div class="box">KEKKECONTENT</div> | |
<div class="box">KEKKECONTENT</div> | |
<div class="box">KEKKECONTENT</div> | |
<div class="box">KEKKECONTENT</div> | |
<div class="box">KEKKECONTENT</div> | |
</div> |
This file contains 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
#wrapper { | |
background: #eee; | |
padding: 20px; | |
display: flex; | |
flex-direction: column; | |
justify-content: center; | |
align-items: center; | |
} | |
.box { | |
background-color: red; | |
color: white; | |
padding: 20px; | |
margin: 10px; | |
border-radius: 20px; | |
-webkit-animation: fadein 1s; /* Safari, Chrome and Opera > 12.1 */ | |
-moz-animation: fadein 1s; /* Firefox < 16 */ | |
-ms-animation: fadein 1s; /* Internet Explorer */ | |
-o-animation: fadein 1s; /* Opera < 12.1 */ | |
animation: fadein 1s infinite; | |
} | |
@keyframes fadein { | |
from { | |
opacity: 0; | |
margin-top: 30px; | |
} | |
to { | |
opacity: 1; | |
margin-top: 0; | |
} | |
} | |
/* Firefox < 16 */ | |
@-moz-keyframes fadein { | |
from { | |
opacity: 0; | |
margin-top: 30px; | |
} | |
to { | |
opacity: 1; | |
margin-top: 0; | |
} | |
} | |
/* Safari, Chrome and Opera > 12.1 */ | |
@-webkit-keyframes fadein { | |
from { | |
opacity: 0; | |
margin-top: 30px; | |
} | |
to { | |
opacity: 1; | |
margin-top: 0; | |
} | |
} | |
/* Internet Explorer */ | |
@-ms-keyframes fadein { | |
from { | |
opacity: 0; | |
margin-top: 30px; | |
} | |
to { | |
opacity: 1; | |
margin-top: 0; | |
} | |
} | |
/* Opera < 12.1 */ | |
@-o-keyframes fadein { | |
from { | |
opacity: 0; | |
margin-top: 30px; | |
} | |
to { | |
opacity: 1; | |
margin-top: 0; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment