페이지 로딩 애니메이션
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<style>
body, html {
height: 100%;
margin: 0;
display: flex;
justify-content: center;
align-items: center;
background: white;
}
.container {
width: 1920px;
height: 1080px;
position: relative;
overflow: hidden;
}
.divCover {
width: 100%;
height: 100%;
background-size: cover; /* Cover ensures the background image covers the entire div */
position: absolute;
clip-path: circle(0% at 50% 50%);
animation: OpeningAnimation 3s forwards;
}
@keyframes OpeningAnimation {
to {
clip-path: circle(75% at 50% 50%);
}
}
</style>
</head>
<body>
<div class="container">
<div class="divCover"><video loop playsinline autoplay muted="muted" src="1.mp4"></video></div> <!-- This div will reveal the content -->
</div>
</body>
</html>
특정 사이트에서 동작하는 애니메이션 보고 인상적이어서 비슷하게 작업해 봤습니다.
동영상 대신 이미지 교체해도 좋습니다.
역동적이지는 않아서 좀 아쉽지만
처음 페이지 로딩때 활용하면 괜찮을 것 같습니다
게시판 목록
개발자팁
질문은 QA에서 해주시기 바랍니다.
| 번호 | 분류 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|---|
| 5126 | PHP |
|
3년 전 | 1797 | |
| 5125 | PHP | 3년 전 | 1602 | ||
| 5124 | PHP | 3년 전 | 2117 | ||
| 5123 | OS | 3년 전 | 1399 | ||
| 5122 | OS | 3년 전 | 1316 | ||
| 5121 | OS | 3년 전 | 1419 | ||
| 5120 | OS | 3년 전 | 1296 | ||
| 5119 | PHP |
|
3년 전 | 1148 | |
| 5118 | PHP | 3년 전 | 1362 | ||
| 5117 | Mobile |
|
3년 전 | 1402 | |
| 5116 | PHP | 3년 전 | 2295 | ||
| 5115 | MySQL |
welcome
|
3년 전 | 2906 | |
| 5114 | OS | 3년 전 | 2005 | ||
| 5113 | JavaScript | 3년 전 | 1539 | ||
| 5112 | PHP | 3년 전 | 1560 | ||
| 5111 | 기타 |
|
3년 전 | 1299 | |
| 5110 | PHP | 3년 전 | 4545 | ||
| 5109 | PHP | 3년 전 | 1580 | ||
| 5108 | 기타 |
|
3년 전 | 12175 | |
| 5107 | 기타 |
|
3년 전 | 2409 | |
| 5106 | 기타 |
|
3년 전 | 6323 | |
| 5105 | 기타 |
|
3년 전 | 3696 | |
| 5104 | 기타 |
|
3년 전 | 1504 | |
| 5103 | JavaScript | 3년 전 | 1693 | ||
| 5102 | 기타 |
|
3년 전 | 1272 | |
| 5101 | 기타 |
|
3년 전 | 1467 | |
| 5100 | 기타 |
|
3년 전 | 1308 | |
| 5099 | 웹서버 | 3년 전 | 2174 | ||
| 5098 | PHP | 3년 전 | 1327 | ||
| 5097 | PHP |
|
3년 전 | 1986 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기