动态弹出菜单效果

代码语言:html

所属分类:菜单导航

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

<!DOCTYPE html>
<html lang="en">
<head>
   
<meta charset="UTF-8">

   
<title> Menu Interaction</title>
   
<style>
        body {
            width: 100%;
            height: 100vh;
            padding: 0;
            margin: 0;
            background-color: #9CB46D;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .widget {
            width: 288px;
            height: 200px;
            display: flex;
            justify-content: flex-end;
            border-radius: 10px;
            background-color: #FFF;
        }
        .widget.active .menu {
            width: 344px;
        }
        .widget.active .menu .toggle {
            right: 296px;
        }
        .widget.active .menu .toggle i {
            width: 8px;
            transition: width 400ms cubic-bezier(0.6, 0, 0.45, 0.99), trans.........完整代码请登录后点击上方下载按钮下载查看

网友评论0