vue实现点状导航移动动画效果代码
代码语言:html
所属分类:菜单导航
代码描述:vue实现点状导航移动动画效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en" > <head> <meta charset="UTF-8"> <style> body { background: white; display: -webkit-box; display: flex; -webkit-box-pack: center; justify-content: center; -webkit-box-align: center; align-items: center; width: 100vw; height: 100vh; overflow: hidden; } .scene_nav { position: relative; } .scene_nav_list { display: -webkit-box; display: flex; margin: 0; padding: 0; } .scene_nav_item { display: block; width: 30px; height: 30px; } .scene_nav_item:not(:first-child) { margin-left: 30px; } .scene_nav_button { display: block; width: 30px; height: 30px; margin: 0; padding: 0; border: none; background: #d2d2dc; border-radius: 100%; outline: none; cursor: pointer; -webkit-transition: 500ms; transition: 500ms; } .scene_nav_button:hover { background: #6496c8; } .scene_nav_mark { position: absolute; top: 0; left: 0; width: 30px; height: 30px; background: #6496c8; border-radius: 99px; } </style> </head> <body translate="no" > <div class="ui" id="js-ui"> <nav class="scene_nav"> <ol class="scene_nav_list"> <li class="scene_nav_item" v-for="(params, index) in maxScene"> <button class="scene_nav_button" @click="selectScene(index)"></button> </li> </ol> <div class="scene_nav_mark" id="js-scene_nav_mark"></div> </nav> &.........完整代码请登录后点击上方下载按钮下载查看
网友评论0