-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
191 lines (191 loc) · 10.2 KB
/
index.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
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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
<!DOCTYPE html>
<html lang="en" class="no-js">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Scroll Filter Effect</title>
<meta name="description" content="" />
<link href="data:image/x-icon;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQEAYAAABPYyMiAAAABmJLR0T///////8JWPfcAAAACXBIWXMAAABIAAAASABGyWs+AAAAF0lEQVRIx2NgGAWjYBSMglEwCkbBSAcACBAAAeaR9cIAAAAASUVORK5CYII=" rel="icon" type="image/x-icon" />
<link rel="stylesheet" href="https://use.typekit.net/qsy7khk.css">
<link rel="stylesheet" type="text/css" href="css/base.css" />
<script src="https://ajax.googleapis.com/ajax/libs/webfont/1.6.26/webfont.js"></script>
</head>
<body class="loading">
<main>
<div class="intro">
<h1 class="intro__title">
<span class="intro__title-pre">On-Scroll Filter Effect</span>
</h1>
<span class="intro__info">{ Scroll Down }</span>
</div>
<div class="content-wrap">
<div class="content">
<div class="title-wrap">
<span class="title title--up">Lore</span>
<span class="title title--down">Ipsu</span>
</div>
</div>
<div class="content content--layout content--layout-1">
<svg class="content__img content__img--1" width="896" height="1344" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 896 1344">
<defs>
<filter id="displacementFilter">
<feTurbulence type="fractalNoise" baseFrequency="0.03" numOctaves="3" result="noise" />
<feDisplacementMap in="SourceGraphic" in2="noise" scale="50" xChannelSelector="R" yChannelSelector="G" />
</filter>
<mask id="circleMask">
<circle cx="50%" cy="50%" r="0" data-value-final="820" fill="white" class="mask" style="filter: url(#displacementFilter);" />
</mask>
</defs>
<image xlink:href="img/1.jpg" width="896" height="1344" mask="url(#circleMask)" />
</svg>
<p class="content__text">Nnon sodales neque sodales ut etiam sit amet nisl purus in mollis nunc sed id semper risus in.</p>
</div>
</div>
<div class="content-wrap">
<div class="content">
<div class="title-wrap">
<span class="title title--up">Amet</span>
<span class="title title--down">Risu</span>
</div>
</div>
<div class="content content--layout content--layout-2">
<svg class="content__img content__img--2" width="1000" height="450" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 1000 450">
<defs>
<filter id="displacementFilter2">
<feTurbulence type="fractalNoise" baseFrequency="0.1" numOctaves="1" result="noise" />
<feDisplacementMap in="SourceGraphic" in2="noise" result="displacement" scale="100" xChannelSelector="R" yChannelSelector="G" />
<feMorphology operator="dilate" radius="2" result="morph" in="displacement"/>
</filter>
<mask id="circleMask2">
<circle cx="50%" cy="50%" r="0" data-value-final="950" fill="white" class="mask" style="filter: url(#displacementFilter2);" />
</mask>
</defs>
<image xlink:href="img/2.jpg" width="1000" height="450" mask="url(#circleMask2)" />
</svg>
<p class="content__text">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis commodo hendrerit aliquet. Sed volutpat justo sed velit laoreet.</p>
</div>
</div>
<div class="content-wrap">
<div class="content">
<div class="title-wrap">
<span class="title title--up">Dolo</span>
<span class="title title--down">Volu</span>
</div>
</div>
<div class="content content--layout content--layout-3">
<svg class="content__img content__img--3" width="1000" height="560" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 1000 560">
<defs>
<filter id="displacementFilter3">
<feTurbulence type="fractalNoise" baseFrequency="0.02" numOctaves="3" result="noise" />
<feDisplacementMap in="SourceGraphic" in2="noise" scale="80" result="displacement" xChannelSelector="R" yChannelSelector="G" />
</filter>
<mask id="pathMask">
<path d="M 0 280 Q 500 280 1000 280 Q 500 280 0 280" data-value-final="M 0 280 Q 500 800 1000 280 Q 500 -200 0 280" fill="white" class="mask" style="filter: url(#displacementFilter3);"/>
</mask>
</defs>
<image xlink:href="img/3.jpg" width="1000" height="560" mask="url(#pathMask)" />
</svg>
<p class="content__text">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur eu nisl nec nisi rutrum viverra. Cras ac scelerisque turpis, vitae volutpat mi. Vestibulum interdum, magna cursus iaculis auctor, dui felis blandit sem, et placerat lorem metus at est. Phasellus dignissim aliquam eros, vitae semper ligula.</p>
</div>
</div>
<div class="content-wrap">
<div class="content">
<div class="title-wrap">
<span class="title title--up">Nisi</span>
<span class="title title--down">Cursu</span>
</div>
</div>
<div class="content content--layout content--layout-4">
<svg class="content__img content__img--4" width="1400" height="560" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 1400 560">
<defs>
<filter id="displacementFilter4">
<feTurbulence type="fractalNoise" baseFrequency="0.5" numOctaves="1" result="noise" />
<feDisplacementMap in="SourceGraphic" in2="noise" scale="50" xChannelSelector="R" yChannelSelector="G" />
</filter>
<mask id="circleMask4">
<circle cx="50%" cy="50%" r="0" data-value-final="770" fill="white" class="mask" style="filter: url(#displacementFilter4);" />
</mask>
</defs>
<image xlink:href="img/4.jpg" width="1400" height="560" mask="url(#circleMask4)" />
</svg>
<p class="content__text">Cras mattis urna ac nibh venenatis imperdiet. Suspendisse vel feugiat nisi. Aenean scelerisque porta tortor, sit amet ultrices odio blandit eget. Morbi tempus velit a ante ultrices, vitae blandit mi blandit. Phasellus ultricies metus at ante facilisis accumsan.</p>
</div>
</div>
<div class="content-wrap">
<div class="content">
<div class="title-wrap">
<span class="title title--up">Ante</span>
<span class="title title--down">Blad</span>
</div>
</div>
<div class="content content--layout content--layout-5">
<svg class="content__img content__img--5" width="680" height="920" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 680 920">
<defs>
<filter id="displacementFilter5">
<feTurbulence type="fractalNoise" baseFrequency="0.1" numOctaves="3" result="noise" />
<feDisplacementMap in="SourceGraphic" in2="noise" scale="150" xChannelSelector="R" yChannelSelector="G" />
</filter>
<mask id="circleMask5">
<circle cx="50%" cy="50%" r="0" data-value-final="580" fill="white" class="mask" style="filter: url(#displacementFilter5);" />
</mask>
</defs>
<image xlink:href="img/5.jpg" width="680" height="920" mask="url(#circleMask5)" />
</svg>
<p class="content__text">Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Praesent congue nunc quis justo mattis, sed consequat massa faucibus.</p>
</div>
</div>
<div class="content-wrap">
<div class="content">
<div class="title-wrap">
<span class="title title--up">Nost</span>
<span class="title title--down">Prae</span>
</div>
</div>
<div class="content content--layout content--layout-6">
<svg class="content__img content__img--6" width="1000" height="1000" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 1000 1000">
<defs>
<filter id="displacementFilter6">
<feTurbulence type="fractalNoise" baseFrequency="0.01" numOctaves="3" result="noise" />
<feDisplacementMap in="SourceGraphic" in2="noise" result="displacement" scale="150" xChannelSelector="R" yChannelSelector="G" />
<feGaussianBlur in="displacement" stdDeviation="10" />
</filter>
<mask id="circleMask6">
<circle cx="50%" cy="50%" r="0" data-value-final="720" fill="white" class="mask" style="filter: url(#displacementFilter6);" />
</mask>
</defs>
<image xlink:href="img/6.jpg" width="1000" height="1000" mask="url(#circleMask6)" />
</svg>
<p class="content__text">Praesent congue nunc quis justo mattis, sed consequat massa faucibus. Maecenas id massa sit amet urna molestie iaculis eu quis mauris. Maecenas bibendum sit amet odio vel condimentum.</p>
</div>
</div>
<div class="content-wrap">
<div class="content">
<div class="title-wrap">
<span class="title title--up">Cong</span>
<span class="title title--down">Nunc</span>
</div>
</div>
<div class="content content--layout content--layout-7">
<svg class="content__img content__img--7" width="1400" height="560" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 1400 560">
<defs>
<filter id="displacementFilter7">
<feTurbulence type="fractalNoise" baseFrequency="0.03" numOctaves="1" result="noise" />
<feDisplacementMap in="SourceGraphic" in2="noise" scale="120" xChannelSelector="R" yChannelSelector="G" />
</filter>
<mask id="circleMask7">
<circle cx="50%" cy="50%" r="0" data-value-final="770" fill="white" class="mask" style="filter: url(#displacementFilter7);" />
</mask>
</defs>
<image xlink:href="img/7.jpg" width="1400" height="560" mask="url(#circleMask7)" />
</svg>
<p class="content__text">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur eu nisl nec nisi rutrum viverra.</p>
</div>
</div>
</main>
<script src="js/gsap.min.js"></script>
<script src="js/Flip.min.js"></script>
<script src="js/ScrollTrigger.min.js"></script>
<script src="js/lenis.min.js"></script>
<script type="module" src="js/index.js"></script>
</body>
</html>