一款由jquery实现的超炫的页面加载特效

今天为大家带来一款由jquery实现的超炫的页面加载特效。连续的几个页面分开特效。最后由三维的线条由远至近消失,然后由近至远出现。效果超级梦炫。一起看下效果图:

在线预览   源码下载

实现的代码。

html代码:

 <svg xmlns="http://www.w3.org/2000/svg" viewbox="0 0 1200 600">
        <line id="uno" x1="600" y1="0" x2="600" y2="0" stroke="navajowhite" stroke-width="1"
            stroke-linecap="round" />
        <line id="dos" x1="1200" y1="300" x2="1200" y2="300" stroke="teal" stroke-width="1"
            stroke-linecap="round" />
        <line id="tres" x1="0" y1="0" x2="0" y2="0" stroke="darkseagreen" stroke-width="1"
            stroke-linecap="round" />
        <line id="cuatro" x1="0" y1="600" x2="0" y2="600" stroke="tomato" stroke-width="1"
            stroke-linecap="round" />
        <line id="cinco" x1="1200" y1="0" x2="1200" y2="0" stroke="slateblue" stroke-width="1"
            stroke-linecap="round" />
        <line id="seis" x1="1200" y1="600" x2="1200" y2="600" stroke="turquoise" stroke-width="1"
            stroke-linecap="round" />
        <g id="vertical-first">
            <line class="vertical" x1="100" y1="0" x2="100" y2="0" stroke="black" stroke-width="1" />
            <line class="vertical" x1="200" y1="0" x2="200" y2="0" stroke="black" stroke-width="1" />
            <line class="vertical" x1="300" y1="0" x2="300" y2="0" stroke="black" stroke-width="1" />
            <line class="vertical" x1="400" y1="0" x2="400" y2="0" stroke="black" stroke-width="1" />
            <line class="vertical" x1="500" y1="0" x2="500" y2="0" stroke="black" stroke-width="1" />
            <line class="vertical" x1="600" y1="0" x2="600" y2="0" stroke="black" stroke-width="1" />
            <line class="vertical" x1="700" y1="0" x2="700" y2="0" stroke="black" stroke-width="1" />
            <line class="vertical" x1="800" y1="0" x2="800" y2="0" stroke="black" stroke-width="1" />
            <line class="vertical" x1="900" y1="0" x2="900" y2="0" stroke="black" stroke-width="1" />
            <line class="vertical" x1="1000" y1="0" x2="1000" y2="0" stroke="black" stroke-width="1" />
            <line class="vertical" x1="1100" y1="0" x2="1100" y2="0" stroke="black" stroke-width="1" />
            <line class="vertical" x1="1200" y1="0" x2="1200" y2="0" stroke="black" stroke-width="1" />
            <line class="vertical" x1="150" y1="0" x2="150" y2="0" stroke="black" stroke-width="1" />
            <line class="vertical" x1="250" y1="0" x2="250" y2="0" stroke="black" stroke-width="1" />
            <line class="vertical" x1="350" y1="0" x2="350" y2="0" stroke="black" stroke-width="1" />
            <line class="vertical" x1="450" y1="0" x2="450" y2="0" stroke="black" stroke-width="1" />
            <line class="vertical" x1="550" y1="0" x2="550" y2="0" stroke="black" stroke-width="1" />
            <line class="vertical" x1="650" y1="0" x2="650" y2="0" stroke="black" stroke-width="1" />
            <line class="vertical" x1="750" y1="0" x2="750" y2="0" stroke="black" stroke-width="1" />
            <line class="vertical" x1="850" y1="0" x2="850" y2="0" stroke="black" stroke-width="1" />
            <line class="vertical" x1="950" y1="0" x2="950" y2="0" stroke="black" stroke-width="1" />
            <line class="vertical" x1="1050" y1="0" x2="1050" y2="0" stroke="black" stroke-width="1" />
            <line class="vertical" x1="1150" y1="0" x2="1150" y2="0" stroke="black" stroke-width="1" />
            <line class="vertical" x1="50" y1="0" x2="50" y2="0" stroke="black" stroke-width="1" />
            <line class="vertical" x1="0" y1="0" x2="0" y2="0" stroke="black" stroke-width="1" />
            <line class="vertical" x1="0" y1="50" x2="0" y2="50" stroke="black" stroke-width="1" />
            <line class="vertical" x1="0" y1="100" x2="0" y2="100" stroke="black" stroke-width="1" />
            <line class="vertical" x1="0" y1="150" x2="0" y2="150" stroke="black" stroke-width="1" />
            <line class="vertical" x1="0" y1="200" x2="0" y2="200" stroke="black" stroke-width="1" />
            <line class="vertical" x1="0" y1="250" x2="0" y2="250" stroke="black" stroke-width="1" />
            <line class="vertical" x1="0" y1="300" x2="0" y2="300" stroke="black" stroke-width="1" />
            <line class="vertical" x1="0" y1="350" x2="0" y2="350" stroke="black" stroke-width="1" />
            <line class="vertical" x1="0" y1="400" x2="0" y2="400" stroke="black" stroke-width="1" />
            <line class="vertical" x1="0" y1="450" x2="0" y2="450" stroke="black" stroke-width="1" />
            <line class="vertical" x1="0" y1="500" x2="0" y2="500" stroke="black" stroke-width="1" />
            <line class="vertical" x1="0" y1="550" x2="0" y2="550" stroke="black" stroke-width="1" />
            <line class="vertical" x1="0" y1="600" x2="0" y2="600" stroke="black" stroke-width="1" />
            <line class="vertical" x1="100" y1="600" x2="100" y2="600" stroke="black" stroke-width="1" />
            <line class="vertical" x1="200" y1="600" x2="200" y2="600" stroke="black" stroke-width="1" />
            <line class="vertical" x1="300" y1="600" x2="300" y2="600" stroke="black" stroke-width="1" />
            <line class="vertical" x1="400" y1="600" x2="400" y2="600" stroke="black" stroke-width="1" />
            <line class="vertical" x1="500" y1="600" x2="500" y2="600" stroke="black" stroke-width="1" />
            <line class="vertical" x1="600" y1="600" x2="600" y2="600" stroke="black" stroke-width="1" />
            <line class="vertical" x1="700" y1="600" x2="700" y2="600" stroke="black" stroke-width="1" />
            <line class="vertical" x1="800" y1="600" x2="800" y2="600" stroke="black" stroke-width="1" />
            <line class="vertical" x1="900" y1="600" x2="900" y2="600" stroke="black" stroke-width="1" />
            <line class="vertical" x1="1000" y1="600" x2="1000" y2="600" stroke="black" stroke-width="1" />
            <line class="vertical" x1="1100" y1="600" x2="1100" y2="600" stroke="black" stroke-width="1" />
            <line class="vertical" x1="1200" y1="600" x2="1200" y2="600" stroke="black" stroke-width="1" />
            <line class="vertical" x1="150" y1="600" x2="150" y2="600" stroke="black" stroke-width="1" />
            <line class="vertical" x1="250" y1="600" x2="250" y2="600" stroke="black" stroke-width="1" />
            <line class="vertical" x1="350" y1="600" x2="350" y2="600" stroke="black" stroke-width="1" />
            <line class="vertical" x1="450" y1="600" x2="450" y2="600" stroke="black" stroke-width="1" />
            <line class="vertical" x1="550" y1="600" x2="550" y2="600" stroke="black" stroke-width="1" />
            <line class="vertical" x1="650" y1="600" x2="650" y2="600" stroke="black" stroke-width="1" />
            <line class="vertical" x1="750" y1="600" x2="750" y2="600" stroke="black" stroke-width="1" />
            <line class="vertical" x1="850" y1="600" x2="850" y2="600" stroke="black" stroke-width="1" />
            <line class="vertical" x1="950" y1="600" x2="950" y2="600" stroke="black" stroke-width="1" />
            <line class="vertical" x1="1050" y1="600" x2="1050" y2="600" stroke="black" stroke-width="1" />
            <line class="vertical" x1="1150" y1="600" x2="1150" y2="600" stroke="black" stroke-width="1" />
            <line class="vertical" x1="50" y1="600" x2="50" y2="600" stroke="black" stroke-width="1" />
            <line class="vertical" x1="1200" y1="0" x2="1200" y2="0" stroke="black" stroke-width="1" />
            <line class="vertical" x1="1200" y1="50" x2="1200" y2="50" stroke="black" stroke-width="1" />
            <line class="vertical" x1="1200" y1="100" x2="1200" y2="100" stroke="black" stroke-width="1" />
            <line class="vertical" x1="1200" y1="150" x2="1200" y2="150" stroke="black" stroke-width="1" />
            <line class="vertical" x1="1200" y1="200" x2="1200" y2="200" stroke="black" stroke-width="1" />
            <line class="vertical" x1="1200" y1="250" x2="1200" y2="250" stroke="black" stroke-width="1" />
            <line class="vertical" x1="1200" y1="300" x2="1200" y2="300" stroke="black" stroke-width="1" />
            <line class="vertical" x1="1200" y1="350" x2="1200" y2="350" stroke="black" stroke-width="1" />
            <line class="vertical" x1="1200" y1="400" x2="1200" y2="400" stroke="black" stroke-width="1" />
            <line class="vertical" x1="1200" y1="450" x2="1200" y2="450" stroke="black" stroke-width="1" />
            <line class="vertical" x1="1200" y1="500" x2="1200" y2="500" stroke="black" stroke-width="1" />
            <line class="vertical" x1="1200" y1="550" x2="1200" y2="550" stroke="black" stroke-width="1" />
            <line class="vertical" x1="1200" y1="600" x2="1200" y2="600" stroke="black" stroke-width="1" />
        </g>
    </svg>

css代码:

 body
        {
            background-color: snow;
        }

        body, svg
        {
            width: 100%;
            height: 100%;
        }

js代码:

 $("#uno")
            .delay(200)
            .velocity({ y2: 600 }, { duration: 1500, easing: "spring" })
            .delay(50)
            .velocity({ strokeWidth: 1500 });

        $("#dos")
            .delay(2000)
            .velocity({ x2: 0 }, { duration: 1500, easing: "swing" })
            .delay(50)
            .velocity({ strokeWidth: 1500 });

        $("#tres")
            .delay(4000)
            .velocity({ x2: 1200, y2: 600 }, { duration: 1500, easing: "spring" })
            .delay(50)
            .velocity({ strokeWidth: 1500 });

        $("#cuatro")
            .delay(6000)
            .velocity({ x2: 1200, y2: 0 }, { duration: 1500, easing: "swing" })
            .delay(50)
            .velocity({ strokeWidth: 1500 });

        $("#cinco")
            .delay(8000)
            .velocity({ x2: 0, y2: 600 }, { duration: 1500, easing: "spring" })
            .delay(50)
            .velocity({ strokeWidth: 1500 });

        $("#seis")
            .delay(10000)
            .velocity({ x2: 0, y2: 0 }, { duration: 1500, easing: "spring" })
            .delay(50)
            .velocity({ strokeWidth: 1500 });

        $(".vertical")
            .delay(12000)
            .velocity({ y2: 300, x2: 600 }, { duration: 1500, easing: "easeInCubic" })
            .delay(100)
            .velocity({ y1: 300, x1: 600 }, { duration: 1500, loop: 1, easing: "easeInCubic" }); //@ sourceURL=pen.js

注:本文爱编程原创文章,转载请注明原文地址:http://www.w2bc.com/Article/7265

时间: 2024-10-10 11:00:16

一款由jquery实现的超炫的页面加载特效的相关文章

一款基于jquery带百分比的响应式进度加载条

今天要给大家带来一款基于jquery带百分比的响应式进度加载条.这款加载条非常漂亮,而且带有进度的百度比,且在不同的百分比用的是不同的颜色.而且这款加载条采用了响应式设计,在不同的分辨率的显示器下完美支持.一起看下效果图吧. 在线预览   源码下载 实现的代码. html代码: <h1> Battle.net <b>style progress bar</b></h1> <div class="progress"> <b

基于css3炫酷页面加载动画特效代码

基于CSS3实现35个动画SVG图标.这是一款基于jQuery+CSS3实现的SVG图标动画代码.效果图如下: 在线预览   源码下载 实现的代码. html代码: <div class="loaders"> <div class="loader"> <div class="loader-inner ball-pulse"> <div></div> <div></div

分享一组超炫的loading加载动画

<!doctype html><head><meta charset="utf-8"> <link rel="stylesheet" type="text/css" href="css/lanrenzhijia.css"/> <link rel="stylesheet" type="text/css" href="css/l

基于jquery和svg超炫的网页动画

今天给大家分享一款基于jquery和svg超炫的网页动画.这款动画效果非常炫.下面还有重播.慢速.和反向动画按钮.效果非常漂亮.一起看下效果图: 在线预览   源码下载 实现的代码. html代码: <div id="intro"> <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.

Jquery页面加载效果

1.说明 Jquery页面加载可实现异步请求时提示"请稍后,正在加载..."效果,同步请求不可用(即ajax async: false).本文地址:http://www.cnblogs.com/lengzhan/p/6423312.html 2.代码 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43

01JQuery笔记-------------------------DOM和jquery中页面加载方法和顺序

<html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <title></title> <script src="jquery-1.8.3.js"></script&g

一款纯css3实现的超炫动画背画特效

之前为大家介绍了很多款由纯css3实现的特效.今天要再给大家带来一款纯css3实现的超炫动画背画特效.代码非常简单,没有引用任何其它js代码.css代码也不多.效果非常炫.一起看下效果图: 在线预览   源码下载 实现的代码. html代码: <div class='fake-gif'> <span class='stripe'></span><span class='stripe'></span><span class='stripe'&

一款纯css3实现的超炫3D表单

今天要给大家分享一款纯css3实现的超炫3D表单.该特效页面的加载的时候3d四十五度倾斜,当鼠标经过的时候表单动画回正.效果非常炫,一起看下效果图: 在线预览   源码下载 实现的代码. html代码: <div id="face"> <div id="content"> <p> <input type="text" placeholder="Name" /></p>

太赞了!超炫的页面切换动画效果【附源码下载】

今天我们想与大家分享一组创意的页面切换熊效果集合.我们已经在示例中罗列了一组动画,可以被应用到页面切换过程中,创造出很有趣的导航效果.虽然有些效果都非常简单,只是简单的滑动动作,但另外的一些则是利用了视角(Perspective)和 3D 转换(3D Transforms)来创造一些立体动感的效果. 立即下载      在线演示 温馨提示:为保证最佳的效果,请在 IE10+.Chrome.Firefox 和 Safari 等现代浏览器中浏览. CSS 动画根据它们的实现的效果分为不同的组.为展示