-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathscript.js
More file actions
108 lines (98 loc) · 1.79 KB
/
script.js
File metadata and controls
108 lines (98 loc) · 1.79 KB
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
104
105
106
107
108
window.onload = function() {
lax.init();
lax.addDriver('scrollY', function () {
return window.scrollY;
},
{
inertiaEnabled: true,
}
);
lax.addElements('#oasis1 blockquote .text', {
scrollY: {
translateX: [
["elInY", 500, "elOutY"],
[0, 0, 200],
{
inertia: 20
}
],
opacity: [
["elInY", "elCenterY", "elOutY"],
[1, 1, -1],
],
scale: [
["elInY", "elCenterY", "elOutY"],
[1, 1, 0],
{
inertia: .05,
}
]
}
});
lax.addElements('.bar-top span', {
scrollY: {
translateX: [
["elInY", "elOutY"],
['-screenWidth', 0],
{
easing: 'easeInOutQuint'
}
],
}
});
lax.addElements('.bar-bottom span', {
scrollY: {
translateX: [
["elInY", "elOutY"],
['screenWidth', 0],
],
}
});
lax.addElements('#oasis2 blockquote span', {
scrollY: {
scale: [
["elInY", "elCenterY"],
[5, 1],
{
inertia: .05,
}
],
blur: [
["elInY", "elCenterY"],
[15, 0],
]
}
});
lax.addElements('#overlayer', {
scrollY: {
"width": [
["elCenterY", "elOutY"],
[0, 100],
{
cssUnit: "vw",
easing: "easeOutQuad",
}
]
}
});
lax.addElements('#architecture', {
scrollY: {
"border-radius": [
["elInY", "elCenterY"],
[0, 250],
{
easing: "easeOutCubic",
inertia: 15,
}
]
}
});
lax.addElements('#overlayer-text', {
scrollY: {
opacity: [
["elInY", "elCenterY", "elCenterY+1"],
[0, 0, 1],
],
}
});
}