-
Notifications
You must be signed in to change notification settings - Fork 6
/
index.html
148 lines (132 loc) · 4.74 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>GSAP ScrollTrigger Slider</title>
<link rel="icon" href="img/icon.jpg" type="icon/x-icon">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700;800&display=swap" rel="stylesheet">
<link rel="stylesheet" href="style/normalize.css">
<link rel="stylesheet" href="style/style.css">
</head>
<body>
<!-- div .wrapp -->
<div class="wrapp">
<!-- header .header -->
<header class="header">
<div class="content">
<h1 class="title">gsap scroll<span class="stroke">slider</span></h1>
</div>
</header>
<!-- header .header END -->
<!-- main .main -->
<main class="main">
<!-- section .section-slider -->
<section class="section-slider gsap_slider">
<div class="content">
<div class="section__slider gsap_h">
<!-- gsap__bl -->
<div class="gsap__bl">
<div class="gsap__inner">
<div class="gsap__track">
<div class="gsap__item">
<span class="gsap__item-num"># 01</span>
<img src="img/img1.png" alt="1">
<span class="gsap__item-img">
<img src="img/img1.png" alt="1">
</span>
</div>
<div class="gsap__item">
<span class="gsap__item-num"># 02</span>
<img src="img/img2.png" alt="2">
<span class="gsap__item-img">
<img src="img/img2.png" alt="2">
</span>
</div>
<div class="gsap__item">
<span class="gsap__item-num"># 03</span>
<img src="img/img3.png" alt="3">
<span class="gsap__item-img">
<img src="img/img3.png" alt="3">
</span>
</div>
<div class="gsap__item">
<span class="gsap__item-num"># 04</span>
<img src="img/img4.png" alt="4">
<span class="gsap__item-img">
<img src="img/img4.png" alt="4">
</span>
</div>
<div class="gsap__item">
<span class="gsap__item-num"># 05</span>
<img src="img/img5.png" alt="5">
<span class="gsap__item-img">
<img src="img/img5.png" alt="5">
</span>
</div>
<div class="gsap__item">
<span class="gsap__item-num"># 06</span>
<img src="img/img6.png" alt="6">
<span class="gsap__item-img">
<img src="img/img6.png" alt="6">
</span>
</div>
<div class="gsap__item">
<span class="gsap__item-num"># 07</span>
<img src="img/img7.png" alt="7">
<span class="gsap__item-img">
<img src="img/img7.png" alt="7">
</span>
</div>
<div class="gsap__item">
<span class="gsap__item-num"># 08</span>
<img src="img/img8.png" alt="8">
<span class="gsap__item-img">
<img src="img/img8.png" alt="8">
</span>
</div>
</div>
</div>
</div>
<!-- gsap__bl END -->
</div>
</div>
</section>
<!-- section .section END -->
<section class="section-text">
<div class="content">
<p>Lorem ipsum dolor sit, amet consectetur adipisicing elit. Eos voluptatem fugit accusamus fuga
vero
quos,
sint est laboriosam eveniet ea! Ducimus illum hic quas dolorem minima eius? Laboriosam iure
deserunt
totam sequi atque porro, dignissimos dolore sed laudantium. Ducimus modi corporis quaerat
autem
voluptates, quis, facere minima sequi reprehenderit itaque tempore illum perspiciatis
delectus
maiores!
Aliquam placeat necessitatibus omnis voluptatem molestias repellat repudiandae quia ad quas,
in
accusantium, est enim esse quidem illo dolorem! Dolor, quam voluptatem! Facilis voluptatem
tempore
repellat accusamus quidem illo molestias odio, consequuntur rem mollitia dolores praesentium
quisquam
accusantium quo?</p>
</div>
</section>
</main>
<!-- main .main END -->
</div>
<!-- /div .wrapp END -->
<!-- script -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.4/jquery.min.js"></script>
<script src="https://cdn.jsdelivr.net/gh/studio-freight/[email protected]/bundled/lenis.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.11.5/gsap.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.11.5/ScrollTrigger.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/lodash.js/4.17.21/lodash.min.js"></script>
<script src="js/js.js"></script>
</body>
</html>