250x250
Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | |||||
3 | 4 | 5 | 6 | 7 | 8 | 9 |
10 | 11 | 12 | 13 | 14 | 15 | 16 |
17 | 18 | 19 | 20 | 21 | 22 | 23 |
24 | 25 | 26 | 27 | 28 | 29 | 30 |
Tags
- iPhone
- html5
- front-end
- effect
- CSS
- css3
- 개발자
- Animation
- 풀스택
- 애니메이션
- 비전공자
- php
- SWIFT
- xcode
- 프론트엔드
- button
- HTML
- hover
- 비전공 개발자
- keyframes
- 자바스크립트
- react
- javascript
- 백엔드
- image
- MAC
- IOS
- jQuery
- ipad
- iOS 개발자
Archives
- Today
- Total
비전공자 개발일기
Floating Text 본문
728x90
SMALL
<!DOCTYPE html>
<html lang="ko">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>FLOATING TEXT</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="content">
<h2>WARRIOS</h2>
<h2>WARRIOS</h2>
</div>
</body>
</html>
body {
display: flex;
background: #000;
min-height: 97vh;
align-items: center;
justify-content: center;
font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
}
.content {
position: relative;
}
.content h2 {
color: #fff;
font-size: 8em;
position: absolute;
letter-spacing: 5px;
transform: translate(-50%, -50%);
}
.content h2:nth-child(1) {
color: transparent;
-webkit-text-stroke: 2px rgb(254, 205, 7);
}
.content h2:nth-child(2) {
color: #045aa7;
animation: animate 3s ease-in-out infinite;
}
@keyframes animate {
0%, 100% {
clip-path: polygon(
0% 45%,
16% 44%,
33% 50%,
54% 60%,
70% 61%,
84% 59%,
100% 52%,
100% 100%,
0% 100%
);
}
50% {
clip-path: polygon(
0% 60%,
15% 65%,
34% 66%,
51% 62%,
67% 50%,
84% 45%,
100% 46%,
100% 100%,
0% 100%
);
}
}
728x90
LIST
'HTML _CSS' 카테고리의 다른 글
Nine Dots Menu (0) | 2022.05.11 |
---|---|
3D BUTTON (0) | 2022.05.09 |
Instagram Notification Animation (0) | 2022.05.06 |
Card With Glass Effect (0) | 2022.05.03 |
Neon Text Glow Animation (0) | 2022.05.01 |