HTML _CSS
CSS Focus
HiroDaegu
2022. 7. 14. 00:58
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>CSS FOCUS</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<h2>
<span><i></i>F</span>
<span><i></i>O</span>
<span><i></i>C</span>
<span><i></i>U</span>
<span><i></i>S</span>
</h2>
</body>
</html>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
/* font-family: monospace; */
}
body {
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
background: linear-gradient(45deg, #FF0057, #2196F3);
}
h2 {
position: relative;
display: flex;
gap: 5px;
color: #FFF;
font-size: 4em;
cursor: pointer;
}
h2 span {
position: relative;
filter: blur(5px);
padding: 0 5px;
}
h2 span:hover {
filter: blur(0);
transition: .5s;
}
h2 span i {
position: absolute;
inset: 0;
background-color: transparent;
}
h2 span:hover i::before {
content: '';
position: absolute;
top: 0;
left: 0;
width: 2px;
height: 8px;
background-color: #FFF;
box-shadow: 0 53px #FFF, 36px 53px #FFF, 36px 0 #FFF;
}
h2 span:hover i::after {
content: '';
position: absolute;
top: 10px;
left: 0;
width: 8px;
height: 2px;
background-color: #FFF;
box-shadow: 0 60px #FFF, 30px 60px #FFF, 30px 0 #FFF;
}728x90
LIST