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
- css3
- 비전공 개발자
- php
- javascript
- keyframes
- SWIFT
- jQuery
- button
- CSS
- 프론트엔드
- Animation
- IOS
- 개발자
- front-end
- effect
- xcode
- ipad
- hover
- 비전공자
- 자바스크립트
- image
- iPhone
- HTML
- html5
- 애니메이션
- 풀스택
- 백엔드
- MAC
- iOS 개발자
- react
Archives
- Today
- Total
비전공자 개발일기
Number Fill 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>NUMBER FILL ANIMATION</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<p class="number">2,000,000,000</p>
</body>
</html>
:root {
--color-green-200: #197302;
--color-green-600: #36FE04;
}
body {
background: #000;
display: grid;
height: 100vh;
min-height: 100dvh;
place-items: center;
}
.number {
color: #f09;
font-size: 10vw;
font-weight: bold;
background-image:
linear-gradient(var(--color-green-600), var(--color-green-600)),
linear-gradient(var(--color-green-200), var(--color-green-200));
-webkit-background-clip: text;
background-clip: text;
color: transparent;
background-size: 0% 100%, 100% 100%;
background-repeat: no-repeat, no-repeat;
animation: fill 20s linear infinite;
}
@keyframes fill {
to {
background-size: 100% 100%, 100% 100%;
}
}
728x90
LIST
'HTML _CSS' 카테고리의 다른 글
Happy New Year 2023 (0) | 2022.12.31 |
---|---|
X-mas Background (0) | 2022.12.26 |
Noisy Grainy Icons (0) | 2022.12.21 |
Credit Card2 (0) | 2022.12.19 |
Elastic Line Animation (0) | 2022.12.18 |