酷炫菜单导航特效
代码语言:html
所属分类:菜单导航
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title> -Tab Bar Animation</title> <link href="https://fonts.googleapis.com/css?family=Poppins:400&display=swap" rel="stylesheet"> <meta name="viewport" content="width=device-width, initial-scale=1"> <style> /* Variables */ /* Reset */ *, *::after, *::before { margin: 0; padding: 0; box-sizing: border-box; } /* Generic */ body { width: 100%; height: 100vh; display: flex; justify-content: center; align-items: center; font-family: 'Poppins', sans-serif; background: #004FF0; user-select: none; } a { font-size: 9px; font-weight: bold; text-decoration: none; color: #004FF0; letter-spacing: .25px; } /**/ #active-1, #active-2, #active-3 { position: absolute; bottom: -22px; left: -100px; height: 30px; width: 30px; background: #004FF0; border-radius: 50%; transition: .5s ease-out; } #active-2 { transition-delay: .02s; } #active-3 { transition-delay: .04s; } /**/ .menu { display: flex; align-items: center; position: relative; width: 260px; height: 65px; overflow: hidden; background: #ffffff; cursor: pointer; box-shadow: 0 0 10px rgba(0, 0, 0, 0.25); } .menu__item { display: flex; justify-content: flex-start; flex-direction: column; align-items: center; width: 40px; height: 40px; margin: 10px; overflow: hidden; } .menu__c { display: flex; justify-content: center; align-items: center; flex-direction: column; flex-shrink: 0; height: 40px; width: 40px; border-radius: 50%; transform: translateY(-40px); } .menu__c:hover { animation: item .25s ease-in-out 1; } .menu__c--top:hover.........完整代码请登录后点击上方下载按钮下载查看
网友评论0