mightypoint/animation.css

296 lines
5.2 KiB
CSS
Raw Permalink Normal View History

.hidden {
opacity: 0;
2024-08-06 16:39:50 +07:00
}
@keyframes fadeIn {
from { opacity: 0; }
to { opacity: 1; }
2024-08-06 16:39:50 +07:00
}
.fade-in { animation: fadeIn 2s ease-in-out forwards; }
2024-08-06 16:39:50 +07:00
@keyframes fadeInLeft {
from {
opacity: 0;
transform: translateX(-20px);
}
to {
opacity: 1;
transform: translateX(0);
}
2024-08-06 16:39:50 +07:00
}
.fade-in-left { animation: fadeInLeft 2s ease-in-out forwards; }
2024-08-06 16:39:50 +07:00
@keyframes fadeInRight {
from {
opacity: 0;
transform: translateX(20px);
}
to {
opacity: 1;
transform: translateX(0);
}
2024-08-06 16:39:50 +07:00
}
.fade-in-right { animation: fadeInRight 2s ease-in-out forwards; }
2024-08-06 16:39:50 +07:00
@keyframes fadeInTop {
from {
opacity: 0;
transform: translateY(-20px);
}
to {
opacity: 1;
transform: translateY(0);
}
2024-08-06 16:39:50 +07:00
}
.fade-in-top { animation: fadeInTop 2s ease-in-out forwards; }
2024-08-06 16:39:50 +07:00
@keyframes fadeInBottom {
from {
opacity: 0;
transform: translateY(20px);
}
to {
opacity: 1;
transform: translateY(0);
}
2024-08-06 16:39:50 +07:00
}
.fade-in-bottom { animation: fadeInBottom 2s ease-in-out forwards; }
2024-08-06 16:39:50 +07:00
@keyframes fadeOut {
from { opacity: 1; }
to { opacity: 0; }
2024-08-06 16:39:50 +07:00
}
.fade-out { animation: fadeOut 2s ease-in-out forwards; }
2024-08-06 16:39:50 +07:00
@keyframes fadeOutLeft {
from {
opacity: 1;
transform: translateX(0);
}
to {
opacity: 0;
transform: translateX(-20px);
}
2024-08-06 16:39:50 +07:00
}
.fade-out-left { animation: fadeOutLeft 2s ease-in-out forwards; }
2024-08-06 16:39:50 +07:00
@keyframes fadeOutRight {
from {
opacity: 1;
transform: translateX(0);
}
to {
opacity: 0;
transform: translateX(20px);
}
2024-08-06 16:39:50 +07:00
}
.fade-out-right { animation: fadeOutRight 2s ease-in-out forwards; }
2024-08-06 16:39:50 +07:00
@keyframes fadeOutTop {
from {
opacity: 1;
transform: translateY(0);
}
to {
opacity: 0;
transform: translateY(-20px);
}
2024-08-06 16:39:50 +07:00
}
.fade-out-top { animation: fadeOutTop 2s ease-in-out forwards; }
2024-08-06 16:39:50 +07:00
@keyframes fadeOutBottom {
from {
opacity: 1;
transform: translateY(0);
}
to {
opacity: 0;
transform: translateY(20px);
}
2024-08-06 16:39:50 +07:00
}
.fade-out-bottom { animation: fadeOutBottom 2s ease-in-out forwards; }
2024-08-06 16:39:50 +07:00
@keyframes zoomIn {
from {
transform: scale(0);
opacity: 0;
}
to {
transform: scale(1);
opacity: 1;
}
2024-08-06 16:39:50 +07:00
}
.zoom-in { animation: zoomIn 1.5s ease-in-out forwards; }
2024-08-06 16:39:50 +07:00
@keyframes zoomOut {
from {
transform: scale(1);
opacity: 1;
}
to {
transform: scale(0);
opacity: 0;
}
2024-08-06 16:39:50 +07:00
}
.zoom-out { animation: zoomOut 1.5s ease-in-out forwards; }
2024-08-06 16:39:50 +07:00
@keyframes flyInLeft {
from {
transform: translateX(-100%);
opacity: 0;
}
to {
transform: translateX(0);
opacity: 1;
}
2024-08-06 16:39:50 +07:00
}
.fly-in-left { animation: flyInLeft 2s ease-out; }
2024-08-06 16:39:50 +07:00
@keyframes flyInRight {
from {
transform: translateX(100%);
opacity: 0;
}
to {
transform: translateX(0);
opacity: 1;
}
2024-08-06 16:39:50 +07:00
}
.fly-in-right { animation: flyInRight 2s ease-out; }
2024-08-06 16:39:50 +07:00
@keyframes flyInTop {
from {
transform: translateY(-100%);
opacity: 0;
}
to {
transform: translateY(0);
opacity: 1;
}
2024-08-06 16:39:50 +07:00
}
.fly-in-top { animation: flyInTop 2s ease-out; }
2024-08-06 16:39:50 +07:00
@keyframes flyInBottom {
from {
transform: translateY(100%);
opacity: 0;
}
to {
transform: translateY(0);
opacity: 1;
}
2024-08-06 16:39:50 +07:00
}
.fly-in-bottom { animation: flyInBottom 2s ease-out; }
2024-08-06 16:39:50 +07:00
@keyframes flyOutLeft {
from {
transform: translateX(0);
opacity: 1;
}
to {
transform: translateX(-100%);
opacity: 0;
}
2024-08-06 16:39:50 +07:00
}
.fly-out-left { animation: flyOutLeft 2s ease-out forwards; }
2024-08-06 16:39:50 +07:00
@keyframes flyOutRight {
from {
transform: translateX(0);
opacity: 1;
}
to {
transform: translateX(100%);
opacity: 0;
}
2024-08-06 16:39:50 +07:00
}
.fly-out-right { animation: flyOutRight 2s ease-out forwards; }
2024-08-06 16:39:50 +07:00
@keyframes flyOutTop {
from {
transform: translateY(0);
opacity: 1;
}
to {
transform: translateY(-100%);
opacity: 0;
}
2024-08-06 16:39:50 +07:00
}
.fly-out-top { animation: flyOutTop 2s ease-out forwards; }
2024-08-06 16:39:50 +07:00
@keyframes flyOutBottom {
from {
transform: translateY(0);
opacity: 1;
}
to {
transform: translateY(100%);
opacity: 0;
}
2024-08-06 16:39:50 +07:00
}
.fly-out-bottom { animation: flyOutBottom 2s ease-out forwards; }
2024-08-06 16:39:50 +07:00
@keyframes spinInClockwise {
from {
transform: rotate(0deg);
opacity: 0;
}
to {
transform: rotate(360deg);
opacity: 1;
}
2024-08-06 16:39:50 +07:00
}
.spin-in-clockwise { animation: spinInClockwise 2s ease-in-out; }
2024-08-06 16:39:50 +07:00
@keyframes spinInCounterclockwise {
from {
transform: rotate(0deg);
opacity: 0;
}
to {
transform: rotate(-360deg);
opacity: 1;
}
2024-08-06 16:39:50 +07:00
}
.spin-in-counterclockwise { animation: spinInCounterclockwise 2s ease-in-out; }
2024-08-06 16:39:50 +07:00
@keyframes spinOutClockwise {
from {
transform: rotate(360deg);
opacity: 1;
}
to {
transform: rotate(0deg);
opacity: 0;
}
2024-08-06 16:39:50 +07:00
}
.spin-out-clockwise { animation: spinOutClockwise 2s ease-in-out forwards; }
2024-08-06 16:39:50 +07:00
@keyframes spinOutCounterclockwise {
from {
transform: rotate(-360deg);
opacity: 1;
}
to {
transform: rotate(0deg);
opacity: 0;
}
2024-08-06 16:39:50 +07:00
}
.spin-out-counterclockwise { animation: spinOutCounterclockwise 2s ease-in-out forwards; }
2024-08-06 16:39:50 +07:00
@keyframes typing {
from { width: 0; }
to { width: 100%; }
2024-08-06 16:39:50 +07:00
}
@keyframes blinkCursor {
from { border-right-color: rgba(0, 0, 0, 0.75); }
to { border-right-color: transparent; }
2024-08-06 16:39:50 +07:00
}
.typing {
white-space: nowrap;
overflow: hidden;
border-right: 2px solid rgba(0, 0, 0, 0.75);
width: 0;
animation: typing 4s steps(40, end), blinkCursor 0.75s step-end infinite forwards;
2024-08-06 16:39:50 +07:00
}