Created
October 7, 2019 02:43
-
-
Save frankcaron/509283c2510b57ed28e43b10cdddea69 to your computer and use it in GitHub Desktop.
CSS for slick slide-down animation
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
.THIS div.offer-box { | |
margin-bottom: -5px; | |
} | |
.THIS div.offer-box-ineedspacebro { | |
animation: gimmespace 2s; | |
margin-bottom: 10px; | |
overflow: hidden; | |
} | |
.THIS div.full-offer { | |
animation: fadein 2s; | |
overflow: hidden; | |
} | |
@keyframes fadein { | |
from { | |
max-height: 0; | |
opacity: 0; | |
} to { | |
max-height: 500px; | |
opacity: 1; | |
} | |
} | |
@keyframes gimmespace { | |
from { | |
margin-bottom: -5px; | |
} to { | |
margin-bottom: 10px; | |
} | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment