jqFloat实现网页元素漂浮动画效果代码

代码语言:html

所属分类:动画

代码描述:jqFloat实现网页元素漂浮动画效果代码

代码标签: 元素 漂浮 动画 效果

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

<!DOCTYPE html>
<html>
<head>

    <style>
        body {
            margin: 0;
            padding: 0;
     
            font-family: Arial,Helvetica,sans-serif;
            overflow: hidden;
        }
        header, section, footer {
            display: block;
        }

        /* Header */
        header {
            width: 100%;
            background: #000;
            background: rgba(0, 0, 0, 0.8);
            color: #ccc;
            padding: 15px 0;
            font-family: Arial Narrow, Arial, sans-serif;
            letter-spacing: 1px;
            margin-bottom: 20px;
            position: absolute;
            top: 0;
            left: 0;
            z-index: 99;
        }
        header h1 {
            margin: 0 50px;
            text-shadow: 1px 1px 0 #FFF, 2px 1px 1px #CCC;
            float: left;
        }
        #backlinks {
            float: right;
            margin: -10px 20px;
            line-height: 25px;
            font-weight: bold;
            font-size: 12px;
            text-align: right;
        }
        #backlinks a {
            color: #35BFFF;
            text-decoration: none;
            margin: 3px 0 0;
            display: block;
        }
        #backlinks a:hover {
            color: #91DCFF;
        }

        /* Footer */
        footer {
            background: rgb(0, 0, 0);
            background: rgba(0, 0, 0, 0.8);
            height: 25px;
            width: 100%;
            line-height: 25px;
            position: absolute;
            bottom: 0;
            left: 0;
            bottom: 0;
            left: 0;
            color: #888;
            font-size: 11px;
            z-index: 99;
        }
        footer span {
            padding-left: 20px;
        }
        footer a {
            color: #1FA2E1;
        }

        /* jqFloat.js */
        #wrapper {
            width: 100%;
            height: 100%;
        }
        #holder {
            width: 600px;
            max-width: 100%;
            height: auto;
            position: relative;
            background: #fff;
            border-radius: 30px;
            border: 5px solid #2e5594;
            margin: 10% auto 0;
            padding: 1em 3em;
            box-sizing: border-box;
            -moz-box-sizing: border-box;
            -webkit-box-sizing: border-box;
        }
        #holder h2 {
            font-size: 33px;
            font-style: italic;
            letter-spacing: 2px;
            text-shadow: 1px 1px 0px #fff, 2px 1px 0 #999;
            font-family: Gill Sans MT,sans-serif;
        }
        #holder h2 span {
            color: #DE390E;
        }
        #holder p {
            line-height: 150%;
        }
        #holder pre {
            background: #f4f4f4;
            padding: 10px 25px;
        }

        #ground {
            height: 100px;
            width: 100%;
            position: absolute;
            bottom: 0;
            left: 0;
            background: url(//repo.bfw.wiki/bfwrepo/images/fanpaizi/sprite.png) repeat-x 0 bottom;
            z-index: 7;
        }
        .cloud {
            width: 104px;
            height: 66px;
            background: url(//repo.bfw.wiki/bfwrepo/images/fanpaizi/sprite.png) no-repeat 0 0;
            position: absolute;
            z-index: 10;
        }
        #cloud1 {
            top: 17%;
            left: 22%;
            z-index: 3;
        }
        #cloud2 {
            top: 10%;
            left: 50%;
        }
        #cloud3 {
            top: 20%;
 .........完整代码请登录后点击上方下载按钮下载查看

网友评论0