css实现简单的导航条效果代码

代码语言:html

所属分类:菜单导航

代码描述:css实现简单的导航条效果代码

代码标签: css 简单 导航条

下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开


<!DOCTYPE html>
<html lang="en" >

<head>

 
<meta charset="UTF-8">
 

 
 
 
 
<style>
@import url("https://fonts.googleapis.com/css?family=Roboto:400,400i,700");

body {
        width: 100%;
        height: 100vh;
        display: flex;
        justify-content: center;
        align-items: center;
}

a {
        text-decoration: none;
        font-family: Roboto, sans-serif;
        font-size: 1em;
        display: flex;
        flex-direction: column;
        justify-content: center;
        transition-duration: 0.2s;
        align-items: center;
        padding: 1rem 1.5rem;
}

img {
        transition-duration: 0.2s;
}

img:hover {
        animation: left-edge 0.5s linear 1;
        filter: invert(72%) sepia(20%) saturate(747%) hue-rotate(174deg)
                brightness(96%) contrast(97%);
}

img:hover .menu {
        box-shadow: 0px 10px 5px rgb(100, 187, 241, 0.1);
}

.menu {
        display: flex;
        justify-content: space-between;
        align-items: center;
        position: relative;
        width: auto;
        height: 60px;
        padding: 0 15px;
        border-radius: 15px;
        background: rgb(255, 255, 255);
        box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.1);
}

.dot {
        animation: dot-anim 8s linear infinite;
}

/* Animations */
.........完整代码请登录后点击上方下载按钮下载查看

网友评论0