CSS3仿梦幻西游场景动画特效插件

CSS3仿梦幻西游场景动画特效插件

一款css3 animation动画属性制作梦幻西游师徒四人取经场景动画特效。

CSS样式

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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
* {
    padding: 0;
    margin: 0;
    list-style: none;
}
html,body {
    height: 100%;
}
.main {
    height: 100%;
    width: 100%;
    -webkit-background-size: cover;
    background-size: cover;
    overflow: hidden;
    position: relative;
}
.main ul {
    height: 100%;
    width: 3920px;
    position: absolute;
    top: 0;
    left: 0;
    animation: dong 50s linear infinite;
}
@keyframes dong {
    0% {
        left: 0;
    }
    100% {
        left: 1920px;
    }
}
.main ul li {
    height: 100%;
    width: 100%;
    background: url(imgs/2.jpg);
    float: left;
    margin-left: -2000px;
}
.wk {
    z-index: 999;
    width: 200px;
    height: 180px;
    background: url(imgs/west_01_3ca39fe.png) 0 0 no-repeat;
    /*margin: 400px auto;*/
    position: absolute;
    top: 55%;
    left: 20%;
    animation: wkzou 1s steps(8) infinite;
}
@keyframes wkzou {
    to {
        background-position: -1600px 0;
    }
}
.bj {
    z-index: 999;
    width: 200px;
    height: 180px;
    background: url(imgs/west_02_47bad19.png) 0 0 no-repeat;
    /*margin: 400px auto;*/
    position: absolute;
    top: 55%;
    left: 35%;
    animation: bjzou 1s steps(8) infinite;
}
@keyframes bjzou {
    to {
        background-position: -1600px 0;
    }
}
.ts {
    z-index: 999;
    width: 170px;
    height: 240px;
    background: url(imgs/west_03_f962447.png) 0 0 no-repeat;
    /*margin: 400px auto;*/
    position: absolute;
    top: 50%;
    left: 50%;
    animation: tszou 1s steps(8) infinite;
}
@keyframes tszou {
    to {
        background-position: -1360px 0;
    }
}
.ss {
    z-index: 999;
    width: 210px;
    height: 200px;
    background: url(imgs/west_04_6516d80.png) 0 0 no-repeat;
    /*margin: 400px auto;*/
    position: absolute;
    top: 57%;
    left: 62%;
    animation: sszou 1s steps(8) infinite;
}
@keyframes sszou {
    to {
        background-position: -1680px 0;
    }
}

文件信息:

    0

    发表评论