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
- HTML
- 프론트엔드
- hover
- html5
- css3
- 비전공 개발자
- jQuery
- MAC
- javascript
- front-end
- 애니메이션
- ipad
- keyframes
- effect
- 개발자
- 자바스크립트
- xcode
- php
- image
- Animation
- button
- react
- iOS 개발자
- 비전공자
- 백엔드
- IOS
- 풀스택
- SWIFT
- CSS
- iPhone
Archives
- Today
- Total
비전공자 개발일기
Link Hover Animation 본문
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>Link Hover Animation</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<ul class="list">
<li>
<a href="#" class="link">Mac</a>
</li>
<li>
<a href="#" class="link">iPad</a>
</li>
<li>
<a href="#" class="link">iPhone</a>
</li>
</ul>
</body>
</html>
* {
font-size: 50px;
}
.list {
list-style: none;
text-align: center;
}
.link {
display: inline-block;
margin-block: 2px;
text-decoration: none;
color: #2598eb;
position: relative;
}
.link::after {
content:"";
width: 100%;
height: 1px;
background-color: #6667ab;
border-radius: 4px;
position: absolute;
left: 0;
bottom: 0;
transform: scaleX(0);
transform-origin: left;
transition: transform .25s ease;
}
.link:hover::after {
transform: scaleX(1);
}
728x90
LIST
'HTML _CSS' 카테고리의 다른 글
Shadow BTN (0) | 2022.04.22 |
---|---|
Edge Motion (0) | 2022.04.20 |
TEXT OVERFLOW & LOADING ANIMATION (0) | 2022.04.17 |
filter() Animation (0) | 2022.04.16 |
Card Animation (0) | 2022.04.15 |