menyjs实现三维立体折叠推出菜单效果代码

代码语言:html

所属分类:菜单导航

代码描述:menyjs实现三维立体折叠推出菜单效果代码,可设置左右上下位置弹出。

代码标签: menyjs 三维 立体 折叠 推出 菜单

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

<!doctype html>
<html lang="en">

<head>
   
<meta charset="utf-8">


   
<meta name="viewport" content="width=800, user-scalable=no">

   
<link href='https://fonts.googleapis.com/css?family=Lato:400,700,400italic,700italic' rel='stylesheet' type='text/css'>
   
<style>
        /**
 * The CSS in this file is for styling the demo page,
 * Meny's critical styles (such as transforms) are applied
 * via JavaScript.
 *
 * See the documentation here: https://github.com/hakimel/meny#meny
 *
 * @author Hakim El Hattab | http://hakim.se
 */

* {
        margin: 0;
        padding: 0;
}

html,
body {
        height: 100%;
        overflow: hidden;
}

body {
        background-color: #222;
        background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAYAAACp8Z5+AAAAGklEQVQIW2NkYGD4D8SMQAwGcAY2AbBKDBUAVuYCBQPd34sAAAAASUVORK5CYII=);
        background-repeat: repeat;

        font-family: 'Lato', Helvetica, sans-serif;
        font-size: 16px;
        color: #222;
}

a {
        color: #c2575b;
        text-decoration: none;

        -webkit-transition: 0.15s color ease;
           -moz-transition: 0.15s color ease;
            -ms-transition: 0.15s color ease;
             -o-transition: 0.15s color ease;
                transition: 0.15s color ease;
}
        a:hover {
                color: #f76f76;
        }

h1,
h2 {
        font-size: 24px;
}

.meny {
        display: none;
        padding: 20px;
        overflow: auto;
        background: #333;
        color: #eee;

        -webkit-box-sizing: border-box;
           -moz-box-sizing: border-box;
                box-sizing: border-box;
}
        .meny ul {
                margin-top: 10px;
        }
                .meny ul li {
                        display: inline-block;
                        width: 200px;
                        list-style: none;
                        font-size: 20px;
                        padding: 3px 10px;
                }
                        .meny ul li:before {
                                content: '-';
                                margin-right: 5px;
                                color: rgba( 255, 255, 255, 0.2 );
                        }

/**
 * Hint graphic that appears while menu is inactive
 */
.meny-arrow {
        position: absolute;
        z-index: 10;

        border: 10px solid transparent;

        -webkit-transition: opacity 0.4s ease 0.4s;
           -moz-transition: opacity 0.4s ease 0.4s;
            -ms-transition: opacity 0.4s ease 0.4s;
             -o-transition: opacity 0.4s ease 0.4s;
                transition: opacity 0.4s ease 0.4s;
}
        .meny-left .meny-arrow {
                left: 14px;
                top: 50%;
                margin-top: -16px;
                .........完整代码请登录后点击上方下载按钮下载查看

网友评论0