css跳跃跳动菜单UI动画效果代码

代码语言:html

所属分类:动画

代码描述:css跳跃跳动菜单UI动画效果代码

代码标签: css 跳动 菜单

下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开

<!DOCTYPE html>

<html lang="en">

<head>

   
<meta charset="UTF-8">



   
<style>
        body {
          display: flex;
          align-items: center;
          justify-content: center;
          height: 100vh;
          background-color: snow;
        }
       
        .btn-toggle {
          position: relative;
          display: flex;
          flex-direction: column;
          cursor: pointer;
          -webkit-user-select: none;
             -moz-user-select: none;
              -ms-user-select: none;
                  user-select: none;
          -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
          padding: 12px;
          background-color: transparent;
          border-color: transparent;
          outline: none;
          transform: translateZ(0);
          transition: transform 0.1s ease-out;
        }
        .btn-toggle:active {
          transform: translateY(4px);
        }
        .btn-toggle:focus .line:after {
          background-color: black;
        }
       
        .line {
          display: block;
          width: 60px;
          padding: 3.75px;
   .........完整代码请登录后点击上方下载按钮下载查看

网友评论0