纯css用svg实现导航特效
代码语言:html
所属分类:菜单导航
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title> Navbar UI Interaction</title> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/meyer-reset/2.0/reset.min.css"> <style> * { box-sizing: border-box; } .wrapper { width: 100%; min-height: 100vh; background: #ddeef7; display: flex; align-items: center; justify-content: center; } .icon { display: inline-block; width: 1em; height: 1em; stroke-width: 0; stroke: currentColor; fill: currentColor; } .navbar { background: #fdfdfd; display: inline-flex; align-items: center; padding: 10px 20px 15px; box-shadow: 0px 20px 40px rgba(18, 34, 64, 0.1); border-bottom-left-radius: 30px; border-bottom-right-radius: 30px; position: relative; } .navbar:after { content: ""; width: 120px; background: #d9e0ea; position: absolute; bottom: 8px; left: 50%; height: 3px; transform: translatex(-50%); opacity: 0.7; } .navbar__item { width: 70px; height: 70px; position: relative; cursor: pointer; padding: 10px; position: relative; display: inline-flex; align.........完整代码请登录后点击上方下载按钮下载查看
网友评论0