webgl+css实现炫酷落叶三维背景引导页落地页搜索页标签页代码

代码语言:html

所属分类:其他

代码描述:webgl+css实现炫酷落叶三维背景引导页落地页搜索页标签页代码

代码标签: webgl css 炫酷 落叶 三维 背景 引导页 落地页 搜索页 标签页 代码

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

<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <meta content="en-us" http-equiv="Content-Language">
    <meta name="viewport" content="width=device-width, initial-scale=0.9">
<link type="text/css" rel="stylesheet" href="//repo.bfw.wiki/bfwrepo/css/all.6.7.0.css">
    <script type="text/javascript">
        var d = new Date()
        var time = d.getHours()
        if (time < 24) {
            document.getElementById("title").innerHTML = "Good evening!";
        }
        if (time < 19) {
            document.getElementById("title").innerHTML = "Good afternoon!";
        }
        if (time < 12) {
            document.getElementById("title").innerHTML = "Good morning!";
        }
        if (time < 5) {
            document.getElementById("title").innerHTML = "Go to sleep!";
        }
    </script>
    <style>
        * {
            padding: 0;
            margin: 0;
        }
  .icon {
            width: 3em;
            height: 3em;
            max-width: 72px;
            font-size: 2em; /* Adjust size as needed */
            color: #fff; /* Match your original design */
            display: flex;
            align-items: center;
            justify-content: center;
        }
        body {
            text-align: center;
            background-repeat: no-repeat;
            background-color: #353535;
        }

        #search_input {
            width: 90%;
            height: 40px;
            background-color: transparent;
            border: none;
            outline: 0;
            font-size: 16px;
            color: #4a4266;
            padding: 0 10px;
            border-radius: 50px
        }

        .search_part {
            margin-bottom: 10px;
            margin-top: 90px;
        }

        span {
            display: block;
            font-size: 12px;
            overflow: hidden;
            padding-left: 2px;
            vertical-align: middle;
        }

        .search_bar {
            box-shadow: 0 0 5px rgba(70,70,40,.255);
            -webkit-animation: fadeIn 2.5s;
            animation: fadeIn 2.5s;
            background-color: transparent;
            border-radius: 3px;
            display: table;
            vertical-align: middle;
            width: 80%;
            height: 20px;
            max-width: 400px;
            margin: 10px auto;
        }

        #search_submit {
            outline: 0;
            height: 40px;
            float: right;
            color: #4a4266;
            font-size: 18px;
            font-weight: 500;
            border: none;
            background-color: transparent;
            padding: 0 13px 0 13px
        }

        #content {
            width: 100%;
            text-align: center;
            padding-top: 25px;
            padding-bottom: 15px;
        }

        .box {
            -webkit-animation: fadeInDown 1s;
            animation: fadeInDown 1s;
            position: relative;
            display: inline-block;
            width: 75px;
            border: 0;
        }

            .box a {
                width: 100%;
                height: 100%;
                position: absolute;
                left: 0;
                top: 0;
            }

        .url {
            color: #fff;
            height: 1.5em;
            line-height: 1.5em;
            width: 72px;
            font-size: 0.75em;
            white-space: nowrap;
            overflow: hidden;
            margin: auto;
            -webkit-border-top-right-radius: 5px;
            -webkit-border-bottom-right-radius: 5px;
            text-overflow: ellipsis;
            -o-text-overflow: ellipsis;
            -ms-text-overflow: ellipsis;
            padding-top: 3px;
            padding-bottom: 8px;
        }

        .icon {
            width: 3em;
            height: 3em;
            max-width: 72px;
        }

        #app-items {
            width: 100%;
            max-width: 400px;
            margin: 0px auto;
            text-align: center;
            background-color: transparent;
            ;
            padding-top: 0px;
            padding-bottom: 15px;
        }

        .title {
            background-color: #fffffff;
            font-size: 16px;
            height: 30px;
            line-height: 30px;
            padding: 0 10px 0 20px;
            color: #fff;
        }

        #yiyan {
            width: 100%;
            max-width: 400px;
            margin: 0px auto;
            text-align: center;
            background-color: transparent;
            padding-top: 0px;
            padding-bottom: 15px;
        }

        .shuxing {
            color: #fff;
            font-size: 12px;
            height: 30px;
            line-height: 20px;
            padding: 0 10px 0 20px;
        }

        @-webkit-keyframes flipInX {
            0% {
                -webkit-transform: perspective(400px) rotateX(90deg);
                transform: perspective(400px) rotateX(90deg);
                opacity: 0
            }

            40% {
                -webkit-transform: perspective(400px) rotateX(-10deg);
                transform: perspective(400px) rotateX(-10deg)
            }

            70% {
                -webkit-transform: perspective(400px) rotateX(10deg);
                transform: perspective(400px) rotateX(10deg)
            }

            100% {
                -webkit-transform: perspective(400px) rotateX(0);
                transform: perspective(400px) rotateX(0);
                opacity: 1
            }
        }

        @keyframes flipInX {
            0% {
                -webkit-transform: perspective(400px) rotateX(90deg);
                -ms-transform: perspective(400px) rotateX(90deg);
                transform: perspective(400px) rotateX(90deg);
                opacity: 0
            }

            40% {
                -webkit-transform: perspective(400px) rotateX(-10deg);
                -ms-transform: perspective(400px) rotateX(-10deg);
                transform: perspective(400px) rotateX(-10deg)
            }

            70% {
                -webkit-transform: perspective(400px) rotateX(10deg);
                -ms-transform: perspective(400px) rotateX(10deg);
                transform: perspective(400px) rotateX(10deg)
            }

            100% {
                -webkit-transform: perspective(400px) rotateX(0);
                -ms-transform: perspective(400px) rotateX(0);
                tr.........完整代码请登录后点击上方下载按钮下载查看

网友评论0