위에서 아래로

@keyframes fadeInDown {
	0% {
		opacity: 0;
		transform: translate3d(0, -100%, 0);
	}
	100% {
		opacity: 1;
		transform: translateZ(0);
	}
}
animation: fadeInDown 0.3s;

왼쪽에서 오른쪽으로

@keyframes fadeInLeft {
	0% {
		opacity: 0;
		transform: translate3d(-100%, 0, 0);
	}
	100% {
		opacity: 1;
		transform: translateZ(0);
	}
}
animation: fadeInLeft 0.3s;

오른쪽에서 왼쪽으로

@keyframes fadeInRight {
	0% {
		opacity: 0;
		transform: translate3d(100%, 0, 0);
	}
	100% {
		opacity: 1;
		transform: translateZ(0);
	}
}
animation: fadeInRight 0.3s;

출처

profile
개발자

2개의 댓글

comment-user-thumbnail
2023년 7월 18일

훌륭한 글이네요. 감사합니다.

답글 달기
comment-user-thumbnail
2023년 7월 18일

훌륭한 글이네요. 감사합니다.

답글 달기
Powered by GraphCDN, the GraphQL CDN