Wizard' 1
Wizard'
shrpnl 1
shrpnl
Queinn 1
Queinn
NovaLst 1
NovaLst
InfernoShade 1
InfernoShade
MysticBlade 1
MysticBlade
SolarPhantom 1
SolarPhantom
Riftas 1
Riftas
LunarWraith 1
LunarWraith
DarkHorizon 1
DarkHorizon
SLyFeLLowTR 1
SLyFeLLowTR
Scarlet 1
Scarlet
Hikaye Ekle

Html CSS 3D Menü Yapımı

HERAKLES Otomatik Avlı kalıcı sunucu. 19 Haziran'da açılıyor. Atius & Wizard güvencesiyle hemen kayıt ol, ön kayıt ödülleri aktif. HEMEN TIKLA!

1659431837715.png


HTML

HTML:
<!DOCTYPE html>
<html lang="en">
<head>
    <title>TurkMmo | Bekir A.Ş</title>
    <link rel="stylesheet" type="text/css" href="style1.css">
</head>
<body bgcolor="orange">
    <ul>
        <li style="--i:6;"><a href="#">Home</a></li>
        <li style="--i:5;"><a href="#">About</a></li>
        <li style="--i:4;"><a href="#">Services</a></li>
        <li style="--i:3;"><a href="#">Portfolio</a></li>
        <li style="--i:2;"><a href="#">Our Team</a></li>
        <li style="--i:1;"><a href="#">Contact</a></li>
    </ul>
</body>
</html>

CSS

CSS:
@import url(https://fonts.googleapis.com/css?family_Oswald:400,700);

*
{
    margin: 0;
    padding: 0;
    box-sizing: border-box;

    font-family: "Oswald", sans-serif;
}
body
{
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

ul
{
    position: relative;
    transform: skewY(-15deg);
}

ul li
{
    position: relative;
    list-style: none;
    width: 200px;
    background: #3e3f46;
    padding: 15px;
    z-index: var(--i);

}

ul li:hover
{
    background: rgb(2, 158, 248);
    transform: translateX(-50px);
}

ul li::before
{
    content: "";
    position: absolute;
    top: 0;
    left: -40px;
    width: 40px;
    height: 100%;
    background: #2e3133;
    transform-origin: right;
    transform: skewY(45deg);
    transition: 0.05s;
}

ul li:hover::before
{
    background: rgb(2, 158, 248);
}

ul li::after
{
    content: "";
    position: absolute;
    top: -40px;
    left: 0;
    width: 100%;
    height: 40px;
    background: #35383e;
    transform-origin: bottom;
    transform: skewX(45deg);
    transition: 0.5s;

}

ul li:hover::after
{
    background: rgb(2, 158, 248);
}

ul li a
{
    text-decoration: none;
    color: #999;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: 0.5s;
}

ul li:hover a
{
    color: #fff;
}

ul li:last-child::after
{
    box-shadow: -120px 120px 20px rgba(0, 0, 0, 0.25);
}

 
Son düzenleme:

En Çok Reaksiyon Alan Mesajlar

Şu an konuyu görüntüleyenler (Toplam : 0, Üye: 0, Misafir: 0)

Geri
Üst