css实现手机立体滑动底部导航条效果代码
代码语言:html
所属分类:菜单导航
代码描述:css实现手机立体滑动底部导航条效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en" > <head> <meta charset="UTF-8"> <style> :root { --icon: #b0bfd8; } body { width: 100%; height: 100vh; display: flex; justify-content: center; align-items: center; overflow: hidden; margin: 0; background-color: #e3efe8; background-image: linear-gradient(315deg, #e3efe8 0%, #96a7cf 74%); } nav.menu { display: flex; justify-content: space-between; position: relative; height: 150px; padding: 0 29px 10px; background: #fff0; align-items: flex-end; width: 600px;} nav.menu:before { content: ""; width: 100%; height: 150px; background: #181818; position: absolute; left: 0; bottom: 0; border-radius: 20px; z-index: -1; box-shadow: 1px 1px 2px 0px #fff; } input { display: none;} label { text-decoration: none; font-family: sans-serif; text-transform: uppercase; font-size: 14px; min-width: 100px; height: 100px; margin: 10px 10px 20px; text-align: center; display: inline-grid; align-items: end; color: #b0bfd8; position: relative; transition: all 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55) 0s; cursor: pointer; } label:hover {.........完整代码请登录后点击上方下载按钮下载查看
网友评论0