Last active
August 12, 2017 03:04
-
-
Save croso-df/40d3766db67be90da5b7a2262f46bb91 to your computer and use it in GitHub Desktop.
Page revealing animations
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
@keyframes fade-in-right { | |
from { | |
opacity: 0; | |
transform: translateX(-15px); | |
} | |
to { | |
opacity: 1; | |
transform: translateX(0); | |
} | |
} | |
@keyframes grow-left { | |
from { | |
transform: scaleX(0); | |
} | |
to { | |
transform: scaleX(1); | |
} | |
} |
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
.agent-1, .agent-3 { | |
opacity: 0; | |
animation: fade-in-right ease 0.4s forwards; | |
} | |
.agent-2 { | |
transform: scaleX(0); | |
transform-origin: left; | |
animation: grow-left cubic-bezier(0.785, 0.135, 0.15, 0.86) 0.5s forwards; | |
animation-delay: 0.4s; | |
} | |
.agent-3 { | |
animation-delay: 0.8s; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment