HTML/CSS
<style>
div { background: url(https://i.ibb.co/xM7kx0T/bg.jpg) no-repeat; width: 500px; heigth: 340px;}
.neon { animation: neon 1.5s 0s infinite linear; }
@keyframes neon {
0%{opacity:1;}
3%{opacity:0.8;}
5%{opacity:0.4;}
9%{opacity:1;}
10%{opacity:0.8;}
35%{opacity:1;}
38%{opacity:0.3;}
40%{opacity:1;}
50%{opacity:0.5;}
55%{opacity:1;}
59%{opacity:0.7;}
64%{opacity:1;}
75%{opacity:1;}
78%{opacity:0.3;}
80%{opacity:1;}
82%{opacity:0.5;}
82%{opacity:1;}
90%{opacity:1;}
94%{opacity:1;}
100%{opacity:1;}
}
</style>
<div>
<img class="neon" src="https://i.ibb.co/F3s0vwP/title.png">
</div>
Codepen
See the Pen [HTML/CSS]Neon 애니메이션 by TytanLee (@TytanLee) on CodePen.
원본 : 깜보랜딩페이지
'🧑💻개발 > 아카이브' 카테고리의 다른 글
[JS]정해진 날짜 되면 html요소 삭제, 등장 (0) | 2024.04.05 |
---|---|
[HTML/CSS]눈 내리는 효과 (0) | 2023.12.21 |
[HTML/CSS]마우스 오버 효과(plus-ex사이트) (0) | 2023.10.10 |
[유용한 사이트]iOS 디바이스 정보를 모두 확인할 수 있는 사이트 (0) | 2023.09.19 |
[HTML/CSS]SVG를 활용해 원형 차트 만들기 (0) | 2023.09.14 |