Skip to content

Instantly share code, notes, and snippets.

@croso-df
Last active August 12, 2017 03:04
Show Gist options
  • Save croso-df/40d3766db67be90da5b7a2262f46bb91 to your computer and use it in GitHub Desktop.
Save croso-df/40d3766db67be90da5b7a2262f46bb91 to your computer and use it in GitHub Desktop.
Page revealing animations
@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);
}
}
.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