<!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>List Design</title>
<link rel="stylesheet" href="style.css" />
</head>
<body>
<div class="container">
<ul>
<li>HTML</li>
<li>CSS</li>
<li>JAVASCRIPT</li>
<li>NODE JS</li>
</ul>
</div>
</body>
</html>
@import url("https://fonts.googleapis.com/css2?family=Poppins&display=swap");
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: "Poppins", sans-serif;
}
body {
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
}
ul li {
width: 200px;
height: 35px;
display: flex;
align-items: center;
margin: 1.5em;
cursor: pointer;
padding: 1em;
background: rgb(43, 43, 43);
position: relative;
color: white;
border-radius: 5px;
}
ul li::before,
ul li::after {
content: "";
position: absolute;
z-index: -1;
border-radius: 5px;
width: 105%;
transition: all 0.4s;
}
ul li::before {
left: 0%;
height: 130%;
background: linear-gradient(to right, #021B79, #0575E6);
}
ul li::after {
left: -10%;
height: 120%;
background: #ffffff56;
backdrop-filter: blur(10px);
box-shadow: 0 0 20px rgba(0, 0, 0, 0.164);
}
ul li:hover::before {
transform: translateX(-2.5%);
}
ul li:hover::after {
transform: translateX(15%);
}
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.