-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest.html
55 lines (55 loc) · 930 Bytes
/
test.html
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
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
<style>
body {
background-color: #efefef;
color: white;
height: 2000px;
text-align: center;
font-family: 'Georgia';
font-size: 2em;
padding: 0;
margin: 0;
}
.s1 {
margin-top: 700px;
width: 100%;
height: 400px;
position: relative;
background-color: #232323;
overflow: hidden;
}
.s2 {
position: absolute;
top: 150px;
width: 100%;
text-align: center;
}
</style>
</head>
<body>
<div class="s1">
<div class="s2">Lorem ipsum dolor sit amet</div>
</div>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
<script src="jquery.shifting.js"></script>
<script>
$.shifting({
prepare: false,
animation: [
{
selector: '.s2',
duration: '50%',
delay: '50%',
properties: {
translateY: [0, 100]
}
}
]
});
</script>
</body>
</html>