- 3 Ara 2020
- 94
- 51
Herkese Merhaba Arkadaşlar;
Bugün sizler için HTML CSS Web Sitesi Menüsü tasarımı yaptım kodlarına aşağıdan ulaşabilirsiniz.
Soru ve görüşleriniz için yazabilirsiniz.
İyi Forumlar Dilerim.
HTML:
<!DOCTYPE html>
<html lang="en">
<head>
<title>Creative Menu Item Hover Effects</title>
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>
<section>
<ul>
<li><a href="#" data-text="Home">Home</a></li>
<li><a href="#" data-text="About">About</a></li>
<li><a href="#" data-text="Services">Services</a></li>
<li><a href="#" data-text="Team">Team</a></li>
<li><a href="#" data-text="Contact">Contact</a></li>
</ul>
</section>
</body>
</html>
CSS:
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700;800;900&display=swap');
*
{
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Poppins' sans-serif;
}
section
{
position: relative;
width: 100%;
height: 100vh;
display: flex;
justify-content: center;
align-items: center;
background: #222;
overflow: hidden;
}
ul
{
position: relative;
display: flex;
flex-direction: column;
}
ul li
{
list-style: none;
}
ul li a
{
position: relative;
display: block;
text-decoration: none;
text-transform: uppercase;
font-size: 4em;
color: #fff;
font-weight: 700;
transition: 0.5s;
transition-delay: 0.5s;
}
ul li a:hover
{
color: rgba(255, 255, 255, 0.1);
transform: translateY(-20px);
transition-delay: 0.5s;
}
ul li a::before
{
content: attr(data-text);
position: absolute;
bottom: -10px;
pointer-events: none;
z-index: 1;
font-size: 0.35em;
color: #b9fc02;
font-weight: 500;
letter-spacing: 100px;
opacity: 0;
transition: 0.5s;
text-shadow: 0 0 10px #b9fc02,
0 0 30px #b9fc02,
0 0 80px #b9fc02;
}
ul li a:hover::before
{
letter-spacing: 6px;
opacity: 1;
transition-delay: 0.25s;
}
Soru ve görüşleriniz için yazabilirsiniz.
İyi Forumlar Dilerim.