Skip to content
Advertisements

CSS Menu – Natural


HTML CODE:

<!DOCTYPE html>
<html>
<head>
    <title>menu</title>
    <link rel="stylesheet" type="text/css" href="1.page.css">
</head>
<body>
    <ul>
        <li><a href="#">home</a></li>
        <li><a href="#">about</a></li>
        <li><a href="#">services</a></li>
        <li><a href="#">team</a></li>
        <li><a href="#">portfolio</a></li>
        <li><a href="#">contact</a></li>
    </ul>

</body>
</html>

CSS CODE:

body{
    margin: 0;
    padding: 0;
    font-family: sans-serif;
  background:url(http://101.ru/vardata/modules/channel/background/85/857850-b18c1a5c2adf09a15940240cb9f2b59b.jpg);
  background-size:cover;
}
ul{
    position: absolute;
    left: 50%;
    top: 75%;
    transform: translate(-50%,-50%);
    display: flex;
} 
ul li{
    list-style: none;
}
ul li a{
    position: relative;
    text-decoration:none;
    text-transform: uppercase;
    color:#262626;
    padding:10px 15px;
    font-weight: bold;
    font-size: 18px;
    transition: .5s;
    border-radius: 50% 0 50% 0
}
ul li a:hover{
    background: #196719;
    color:#fff;
    
}
ul li a:before{
    content: "";
    position: absolute;
    top:-17%;
    left:90%;
    width: 30px;
    height: 3px;
    background-color: #196719;
    transform: translateY(-10px);
    transition:transform .5s;
    opacity: 0;
  border-radius:50%;
}
ul li a:hover:before{
    transform: translateY(0px);
    transform: rotate(-30deg);
    opacity: 1;}
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: