css实现环形菜单弹出效果代码
代码语言:html
所属分类:菜单导航
代码描述:css实现环形菜单弹出效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="zh"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <link type="text/css" rel="stylesheet" href="//repo.bfw.wiki/bfwrepo/css/font-awesome-4.7.0/css/font-awesome.min.css"> <style type="text/css"> body{ background: #494A5F; } .demo{ padding: 2em 0; transform: translate3d(0, 0, 0); } .navbar{ width: 150px; height: 150px; line-height: 150px; border-radius: 50%; background: #fff; margin: 70px auto; position: relative; cursor: pointer; text-align: center; font-size: 1.75em; font-weight: bold; color: #99b977; transition: 0.24s 0.2s; } .navbar:hover{ background: rgba(255, 255, 255, 0.75); } .navbar .menu{ list-style: none; padding: 0; margin: 0; position: absolute; top: -75px; left: -75px; border: 150px solid transparent; cursor: default; border-radius: 50%; transform: scale(0); transition: transform 1.4s 0.07s; z-index: -1; } .navbar:hover .menu{ transition: transform 0.4s 0.08s, z-index 0s 0.5s; transform: scale(1); z-index: 1; } .navbar .menu li{ position: absolute; top: -100px; left: -100px; transform-origin: 100px 100px; transition: all 0.5s 0.1s; } .navbar:hover .menu li{ transition: all 0.6s; } .navbar .menu li a{ width: 45px; height: 45px; line-height: 45px; border-radius: 50%; background: #fff; position: absolute; font-size: 60%; color: #99b977; transition: 0.6s; } .navbar:hover .menu li:nth-child(1){ transition-delay: 0.02s; transform: rotate(85deg); } .navbar:hover .menu li:nth-child(1) a{ transition-delay: 0.04s; transform: rotate(635deg); } .navbar:hover .menu li:nth-child(2){ transition-delay: 0.04s; transform: rotate(125deg); } .navbar:hover .menu li:nth-child(2) a{ transition-delay: 0.08s; transform: rotate(595deg); } .navbar:hover .menu li:nth-child(3){ transition-delay: 0.06s; transform: rotate(165deg); } .navbar:hover .menu li:nth-child(3) a{ transition-delay: 0.12s; transform: rotate(555deg); } .navbar:hover .menu li:nth-child(4){ transition-delay: 0.08s; transform: rotate(205deg); } .navbar:hover .menu l.........完整代码请登录后点击上方下载按钮下载查看
网友评论0