-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
91 lines (85 loc) · 3.07 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Cloths TN</title>
<!-- link css file -->
<link rel="stylesheet" href="main.css" />
</head>
<body>
<div class="container">
<section class="wrapper-404">
<h1>Let see our collection</h1>
<div class="card" id="card-1">
<img src="https://i.pinimg.com/550x/3a/ae/f7/3aaef7278839a109ebf0a35c89461355.jpg" alt="" srcset="" />
</div>
<div class="card" id="card-2">
<img src="https://soukelkahina.tn/7421-large_default/jebba-jaune-eda.jpg" alt="" srcset="" />
</div>
<div class="card" id="card-3">
<img src="https://i.pinimg.com/236x/7a/68/f0/7a68f0434b4715bcbcd15096c5fba705.jpg" alt="" srcset="" />
</div>
<div class="card" id="card-4">
<img src="https://www.elissar.tn/wp-content/uploads/2023/02/d%C3%A9tails-jebba-4.jpg" alt="" srcset="" />
</div>
</section>
<section class="outro">
<h1>
Tunisian traditional clothes with an urban twist . <br />
hery go! It creates joy by fusing modern and traditional elements!
</h1>
<button
class="button-see"
data-transition="circular"
data-href="store.html"
>
Let's Start
</button>
</section>
</div>
<!--all script-->
<script
src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.12.5/gsap.min.js"
integrity="sha512-7eHRwcbYkK4d9g/6tD/mhkf++eoTHwpNM9woBxtPUBWm67zeAfFC+HrdoE2GanKeocly/VxeLvIqwvCdk7qScg=="
crossorigin="anonymous"
referrerpolicy="no-referrer"
></script>
<script
src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.12.5/ScrollTrigger.min.js"
integrity="sha512-onMTRKJBKz8M1TnqqDuGBlowlH0ohFzMXYRNebz+yOcc5TQr/zAKsthzhuv0hiyUKEiQEQXEynnXCvNTOk50dg=="
crossorigin="anonymous"
referrerpolicy="no-referrer"
></script>
<script src="https://cdn.jsdelivr.net/npm/@barba/core"></script>
<script src="/script.js"></script>
<script>
document.addEventListener("DOMContentLoaded", () => {
const buttons = document.querySelectorAll(".button-see");
buttons.forEach((button) => {
button.addEventListener("click", function (e) {
e.preventDefault();
// Add active class to trigger circular animation
this.classList.add("active");
// Delay navigation to the next page to match the animation
const href = this.getAttribute("data-href");
setTimeout(() => {
window.location.href = href;
}, 800); // Match the duration of the CSS animation
});
});
// Initialize Barbajs
barba.init({
transitions: [
{
name: "button-see",
beforeEnter() {
console.log("Page loaded with circular transition");
},
},
],
});
});
</script>
</body>
</html>