Skip to content

Instantly share code, notes, and snippets.

@hkkcngz
Created June 9, 2024 21:08
Show Gist options
  • Save hkkcngz/19b52ed8ecce27756bcf4aa0618f19d1 to your computer and use it in GitHub Desktop.
Save hkkcngz/19b52ed8ecce27756bcf4aa0618f19d1 to your computer and use it in GitHub Desktop.
appear animation css
@keyframes appear {
from {
opacity: 0;
scale: 0.5;
}
to {
opacity: 1;
scale: 1;
}
}
@keyframes appear2{
from {
opacity: 0;
transform: translateX(-100px);
}
to {
opacity: 1;
transform: translateX(0px);
}
}
@keyframes appear3{
from {
opacity: 0;
clip-path: inset(100% 100% 0 0);
}
to {
opacity: 1;
clip-path: inset(0 0 0 0);
}
}
.anim {
animation: appear 5s linear;
animation-timeline: view();
animation-range: entry 0% cover 40%
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment