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 |
Tags
- css3
- javascript
- 비전공 개발자
- 풀스택
- iOS 개발자
- effect
- keyframes
- 백엔드
- IOS
- MAC
- HTML
- 애니메이션
- 프론트엔드
- html5
- react
- iPhone
- 비전공자
- hover
- image
- SWIFT
- CSS
- 자바스크립트
- 개발자
- php
- button
- jQuery
- xcode
- Animation
- front-end
- ipad
Archives
- Today
- Total
비전공자 개발일기
Gradient Circle 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>GRADIENT CIRCLE TEXT</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="circle">
<ul>
<li style="--i:-4;"><span>r</span></li>
<li style="--i:-3;"><span>e</span></li>
<li style="--i:-2;"><span>p</span></li>
<li style="--i:-1;"><span>o</span></li>
<li style="--i:0;"><span>l</span></li>
<li style="--i:1;"><span>e</span></li>
<li style="--i:2;"><span>v</span></li>
<li style="--i:3;"><span>e</span></li>
<li style="--i:4;"><span>d</span></li>
<li style="--i:5;"><span>d</span></li>
<li style="--i:6;"><span>n</span></li>
<li style="--i:7;"><span>e</span></li>
<li style="--i:8;"><span>t</span></li>
<li style="--i:9;"><span>n</span></li>
<li style="--i:10;"><span>o</span></li>
<li style="--i:11;"><span>r</span></li>
<li style="--i:12;"><span>f</span></li>
</ul>
</div>
</body>
</html>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
background-color: #222;
}
body::before {
content: '';
position: absolute;
inset: 0;
background: linear-gradient(#08FF12, #0791FF);
z-index: 10;
pointer-events: none;
mix-blend-mode: multiply;
}
.circle {
position: relative;
width: 500px;
height: 500px;
display: flex;
justify-content: center;
align-items: center;
background-color: rgba(255, 255, 255, .05);
border-radius: 50%;
box-shadow: 0 0 0 2px #FFF5, 0 0 0 20px #333, 0 0 0 22px #FFF, 0 0 50px #FFF, 0 0 450px #FFF;
}
.circle::before {
content: '';
position: absolute;
width: 2px;
height: 170px;
border-radius: 2px;
background: linear-gradient(0deg, transparent, #FFF);
transform-origin: bottom;
animation: animateNiddles 20s steps(60) infinite;
}
.circle::after {
content: '';
position: absolute;
width: 4px;
height: 130px;
border-radius: 2px;
background: linear-gradient(0deg, transparent, #FFF);
transform-origin: bottom;
animation: animateNiddles 120s steps(60) infinite;
}
@keyframes animateNiddles {
0% {
transform: translate(-50%, -50%) rotate(0deg);
}
100% {
transform: translate(-50%, -50%) rotate(360deg);
}
}
ul li {
position: absolute;
top: 10px;
list-style: none;
transform-origin: 0 240px;
transform: rotate(calc(21deg * var(--i)));
font-size: 2.5em;
font-weight: 700;
text-transform: uppercase;
font-family: 'Courier New', Courier, monospace;
}
ul li span {
display: inline-block;
color: #FFF;
transform: rotate(calc(-21deg * var(--i)));
text-shadow: 0 0 15px #FFF, 0 0 35px #FFF, 0 0 75px #FFF, 0 0 150px #FFF;
}
728x90
LIST
'HTML _CSS' 카테고리의 다른 글
Slide Sign In & Up (0) | 2022.09.20 |
---|---|
Corner Text Parallax Effects (0) | 2022.09.17 |
Christmas Tree (0) | 2022.09.13 |
Growing Smiley Face Effects (0) | 2022.09.12 |
Hover Effect (0) | 2022.09.10 |