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
- html5
- 프론트엔드
- 풀스택
- IOS
- javascript
- ipad
- CSS
- jQuery
- 백엔드
- 비전공 개발자
- iPhone
- front-end
- php
- iOS 개발자
- 자바스크립트
- effect
- Animation
- button
- 개발자
- 비전공자
- hover
- react
- 애니메이션
- MAC
- SWIFT
- image
- keyframes
- css3
- HTML
- xcode
Archives
- Today
- Total
비전공자 개발일기
Pendulum Loading 본문
728x90
SMALL
<!DOCTYPE html>
<html lang="en">
<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>PENDULUM LOADING</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="loader"></div>
</body>
</html>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
background-color: #222;
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
}
.loader {
position: relative;
width: 60px;
height: 60px;
display: inline-block;
background: radial-gradient(ellipse at center, #FFF 69%, rgba(0, 0, 0, 0) 70%), linear-gradient(to right, rgba(0, 0, 0, 0) 47%, #FFF 48%, #FFF 52%, rgba(0, 0, 0, 0) 53%);
background-size: 20px 20px, 20px auto;
background-repeat: repeat-x;
background-position: center bottom, center -5px;
}
.loader::before, .loader::after {
content: '';
position: absolute;
top: 0;
left: -20px;
width: 20px;
height: 60px;
background: radial-gradient(ellipse at center, #FFF 69%, rgba(0, 0, 0, 0) 70%), linear-gradient(to right, rgba(0, 0, 0, 0) 47%, #FFF 48%, #FFF 52%, rgba(0, 0, 0, 0) 53%);
background-size: 20px 20px, 20px auto;
background-repeat: no-repeat;
background-position: center bottom, center -5px;
transform: rotate(0);
transform-origin: 50% 0;
animation: move-left 1s linear infinite alternate;
}
.loader::after {
animation: move-right 1s linear infinite alternate;
left: 100%;
}
@keyframes move-left {
0% {
transform: rotate(22deg);
}
50% {
transform: rotate(0);
}
}
@keyframes move-right {
0%, 55% {
transform: rotate(0);
}
100% {
transform: rotate(-22deg);
}
}
728x90
LIST
'HTML _CSS' 카테고리의 다른 글
3D Spinning Orbits (0) | 2023.01.25 |
---|---|
Pac-man Loader (0) | 2023.01.24 |
Blob Effect Micro Interaction (0) | 2023.01.22 |
Animated Working Analog Clock (0) | 2023.01.20 |
Responsive Tabs (0) | 2023.01.19 |