html5响应式全屏带悬停动画的导航菜单特效代码

所属分类: 网页特效-导航菜单    2023-12-14 10:56:51

html5响应式全屏带悬停动画的导航菜单特效代码 ie兼容6
 查看演示  登录后下载 温馨提示
登录会员即可享受免费下载
 我要建站

html5响应式全屏带悬停动画的导航菜单特效代码(共2个文件)

    • index.html

使用方法

*{
    box-sizing: border-box;
}

*::before,
*::after{
    box-sizing: inherit;
}

html{
    font-size: 62.5%;
    background-color: black !important;
}

.cd__main{
    height: 100vh;
    font-family: 'Roboto', sans-serif;
    font-size: 1.4rem;
    color: #fff;
    line-height: 1.42;
    background-color: black !important;
    margin: 0;
    overflow: hidden;
}

.cd__main h1{
    color: #fff;
    padding: 20rem 8rem;
}

h2{
  padding: 0 3rem;
}
.navigation__checkbox{
    display: none;
}

.navigation__button{
    background-color: #fff;
    height: 7rem;
    width: 7rem;
    position: fixed;
    top: 6rem;
    right: 6rem;
    border-radius: 50%;
    z-index: 100;
    box-shadow: 0 0.5rem 2rem rgba(155, 154, 154, 0.482);
    text-align: center;
    cursor: pointer;
}


.navigation__icon{
    position: relative;
    margin-top: 3.5rem;
}

.navigation__icon, .navigation__icon::before, .navigation__icon::after{
    width: 3rem;
    height: 2px;
    background-color: black;
    display: inline-block;
}

.navigation__icon::before, .navigation__icon::after{
    content: "";
    position: absolute;
    left: 0;
    transition: all .2s;
}

.navigation__icon::before{
    top: -.8rem;
}

.navigation__icon::after{
    top: .8rem;
}

.navigation__button:hover .navigation__icon::before{
    top: -1rem;
}

.navigation__button:hover .navigation__icon::after{
    top: 1rem;
}


.navigation__checkbox:checked + .navigation__button .navigation__icon{
    background-color: transparent;
}

.navigation__checkbox:checked + .navigation__button .navigation__icon::before{
    top: 0;
    transform: rotate(135deg);
}

.navigation__checkbox:checked + .navigation__button .navigation__icon::after{
    top: 0;
    transform: rotate(-135deg);
}


/*Navigation Background*/

.navigation__background{
    height: 3rem;
    width: 3rem;
    position: fixed;
    top: 7rem;
    right: 7rem;
    opacity: 1;
    background-image: radial-gradient(rgba(4, 8, 1), rgba(41, 41, 40));
    z-index: 80;
    transition: transform .8s cubic-bezier(0.86, 0, 0.07, 1);
}

.navigation__nav{
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 90;
    

    opacity: 0;
    width: 0;
    transition: all 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.navigation__list{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    text-align: center;
    list-style: none;
}

.navigation__item{
    margin: 1rem;
}

.navigation__link:link, .navigation__link:visited{
    display: inline-block;
    font-size: 3rem;
    font-weight: 300;
    padding: 1rem 2rem;
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    background-image: linear-gradient(120deg, transparent 0%, transparent 50%, #fff 50%);
    background-size: 250%;
    transition: all .4s;
}

.navigation__link:hover, .navigation__link:active{
    background-position: 100%;
    color: #000;
    transform: translateX(1rem);
}

.navigation__checkbox:checked ~ .navigation__background{
    transform: scale(100);
}

.navigation__checkbox:checked ~ .navigation__nav{
    opacity: 1;
    width: 100%;
}

站长提示:
1. 苦力吧素材官方QQ群:950875342
2. 平台上所有素材资源,需注册登录会员方能正常下载。
3. 会员用户积极反馈网站、素材资源BUG或错误问题,每次奖励2K币
4. PHP源码类素材,如需协助安装调试,或你有二次开发需求,可联系苦力吧客服。
5. 付费素材资源,需充值后方能下载,如有任何疑问可直接联系苦力吧客服
相关资源 / 导航菜单

jquery图标导航鼠标滑过类似气泡放大缩小显示二级导航菜单

鼠标hover经过气泡动画放大特效,并且显示下级导航菜单,很有创意的设计!
  导航菜单
 5359  0

jquery二级导航菜单支持回调函数绿色下拉菜单导航

一款支持回调函数的二级导航菜单,纯绿色风格,喜欢小清新的拿走!
  导航菜单
 2244  0

jquery响应式左侧滑出侧边栏导航菜单插件

一款响应式边栏导航菜单模板,点击按钮触发左侧滑出边栏模块,带关闭边栏按钮。
  导航菜单
 5210  0

黑色html5响应式二级下拉导航菜单代码

一款响应式自适应二级下拉菜单,很大气很实用!
  导航菜单
 4299  0

评论数(0) 回复有机会获得K币 用户协议

^_^ 还没有人评论,快来抢个沙发!
😀
  • 😀
  • 😊
  • 😂
  • 😍
  • 😑
  • 😷
  • 😵
  • 😛
  • 😣
  • 😱
  • 😋
  • 😎
  • 😵
  • 😕
  • 😶
  • 😚
  • 😜
  • 😭
发表评论