h5模仿windows桌面效果代码

代码语言:html

所属分类:布局界面

代码描述:h5模仿windows桌面效果代码

代码标签: 桌面 效果

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

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

<head>

    <meta charset="UTF-8">


    <link type="text/css" rel="stylesheet" href="//repo.bfw.wiki/bfwrepo/css/font-awesome-4.7.0/css/font-awesome.min.css">
    <style>
        body {
            margin: 0;
            font-family: sans-serif;
        }
        a {
            text-decoration: none;
        }
        .icon {
            color: white;
            list-style-type: none;
            padding: 0;
            margin: 0;
            text-align: center;

        }
        .icon li {
            padding: 10px;
            width: 80px;
        }
        .icon li:hover {
            background: #3366CC;
        }
        .icon li p {
            padding: 2px;
            margin: 0;
            font-size: 12px;
        }
        .icon li img {
            width: 50px;
        }
        .window {
            display: block;
            position: fixed;
            top: 0;
            bottom: 0;
            width: 100%;
            background: url('//repo.bfw.wiki/bfwrepo/image/5f7acbe616b15.png') center / cover no-repeat;
            background-color: black;
        }
        .taskbar {
            position: fixed;
            bottom: 0;
            height: 50px;
            width: 100%;
            background-color: rgba(0, 0, 29, 0.85);
            z-index: -1;
        }
        .windows-logo {
            position: fixed;
            display: block;
            bottom: 8px;
            left: 10px;
            width: 30px;
            z-index: 1000;
            cursor: pointer;
        }
        .metro {
            width: 630px;
            margin: 10px;
            list-style-type: none;
            padding: 0;
        }


        .metro li {
            -webkit-transform: perspective(600px);
            -webkit-transform-style: preserve-3d;
            -webkit-transform-origin-x: 50%;
            -webkit-transform-origin-y: 50%;
            -ms-transform: perspective(600px);
            -ms-transform-style: preserve-3d;
            -ms-transform-origin-x: 50%;
            -ms-transform-origin-y: 50%;
            transform: perspective(600px);
            transform-style: preserve-3d;
            transform-origin-x: 50%;
            transform-origin-y: 50%;
            cursor: default;
            position: relative;
            text-align: center;
            margin: 0 10px 10px 0;
            width: 150px;
            height: 150px;
            color: #ffffff;
            float: left;
            -webkit-transition: .2s -webkit-transform, 1s opacity;
            -ms-transition: .2s -ms-transform, 1s opacity;
            transition: .2s transform, 1s opacity;
            cursor: pointer;
        }

        .metro li i {
            font-size: 54px;
            margin: 35px 0 0;
        }

        .metro li span {
            color: rgba(255, 255, 255, 0.8);
            text-transform: uppercase;
            position: absolute;
            left: 15px;
            bottom: 15px;
            font-size: 14px;
        }

        .metro li:first-child {
            background: #00b6de;
        }

        .metro li:nth-child(2) {
            background: #56dea7;
            width: 310px;
        }

        .metro li:nth-child(3) {
            background: #ff7659;
            margin: 0;
        }

        .metro li:nth-child(4) {
            background: #f8cd36;
        }

        .metro li:nth-child(5) {
            background: #f26175;
        }

        .metro li:nth-child(6) {
            background: #5ca7df;
        }

        .metro li:last-child {
            background: #9e7ac2;
            margin: 0;
        }

        .metro li:nth-child(5):active, .metro li:first-child:active {
            -webkit-transform: scale(0.95);
            -ms-transform: scale(0.95);
            transform: scale(0.95);
        }

        .metro li:nth-child(7):active, .metro li:nth-child(2):active {
            -webkit-transform: perspective(600px) rotate3d(1, 0, 0, -10deg);
            -ms-transform: perspective(600px) rotate3d(1, 0, 0, -10deg);
            transform: perspective(600px) rotate3d(1, 0, 0, -10deg);
        }

        .metro li:nth-child(3):active {
            -webkit-transform: perspective(600px) rotate3d(0, 1, 0, 10deg);
            -ms-transform: perspective(600px) rotate3d(0, 1, 0, 10deg);
            transform: perspective(600px) rotate3d(0, 1, 0, 10deg);
        }

        .metro li:nth-child(4):active {
            -webkit-transform: perspective(600px) rotate3d(0, 1, 0, -10deg);
            -m.........完整代码请登录后点击上方下载按钮下载查看

网友评论0