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
- button
- css3
- 애니메이션
- javascript
- 백엔드
- react
- 비전공자
- Animation
- front-end
- keyframes
- image
- HTML
- IOS
- php
- CSS
- html5
- hover
- 비전공 개발자
- iOS 개발자
- ipad
- xcode
- jQuery
- SWIFT
- effect
- 개발자
- 자바스크립트
- 풀스택
- MAC
- 프론트엔드
- iPhone
Archives
- Today
- Total
비전공자 개발일기
Text Animation 본문
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>TEXT ANIMATION</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<h2 data-text=" ♠ POKER ♣ "> ♠ POKER ♣ </h2>
</body>
</html>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
background-color: #111;
}
h2 {
position: relative;
font-size: 6em;
color: #222;
}
h2::before {
content: attr(data-text);
position: absolute;
color: #FFF;
width: 350px;
overflow: hidden;
white-space: nowrap;
border-right: 4px solid #FFF;
filter: drop-shadow(0 0 20px #FFF) drop-shadow(0 0 50px #FFF);
animation: animate 8s linear infinite;
}
@keyframes animate {
0%, 10%, 100% {
width: 0;
}
70%, 90% {
width: 100%;
}
}728x90
LIST
'HTML _CSS' 카테고리의 다른 글
| 3D Animation Effect (0) | 2022.08.08 |
|---|---|
| Scroll To Top (0) | 2022.08.06 |
| Sidebar Menu (0) | 2022.08.04 |
| Firework (0) | 2022.08.01 |
| Neumorphism Custom Range Slider (0) | 2022.07.30 |