반응형
레인보우 테두리 회전 효과 CSS 입니다.
소스를 적절히 수정해서 사용하시면 훌륭한 효과를 구현 할수 있습니다.
@property --a {
syntax: '<angle>';
initial-value: 0deg;
inherits: false
}
html, body { display: grid }
html { height: 100% }
body { background: dimgrey }
.spinner {
box-sizing: border-box;
place-self: center;
width: min(100%, 18em);
aspect-ratio: 1;
padding: 1.25em;
border-radius: 50%;
box-shadow: 2px 2px 17px #000;
background:
url("https://m.mydarlingu.com/web/product/medium/201902/a7fac77616604a973ff69b0fa5dc07ff.gif") 50%/ cover content-box,
conic-gradient(in hsl longer hue from var(--a), hsl(0, 100%, 80%) 0 0);
animation: a 2s linear infinite;
}
@keyframes a { to { --a: 1turn } }
반응형
'디자인소스' 카테고리의 다른 글
반응형 이미지 비디오 갤러리 Responsive Image Video Gallery (0) | 2023.12.02 |
---|---|
음악방송 웹플레이어 디자인 (0) | 2023.12.02 |
CSS 기반 스크롤 애니메이션 반응형 웹페이지 디자인 (0) | 2023.11.30 |
HTML Audio PlayList Player (0) | 2023.11.29 |
Clappr 플레이어 통계(카운터 타이머 추가 정보) (0) | 2023.11.15 |
YouTube 전체화면 비디오 배경 (0) | 2023.11.14 |
CSS3 스핀 프리로더 및 프리로드 페이지 (0) | 2023.11.14 |
Windows10 Loading (0) | 2023.11.14 |
댓글