-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
81 lines (66 loc) · 2.09 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
<!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>Intro Animation</title>
<script src="https://code.jquery.com/jquery-3.3.1.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/2.0.1/TweenMax.min.js"></script>
<link rel="stylesheet" href="master.css">
<link href="https://fonts.googleapis.com/css?family=Poppins:100,100i,200,200i,300,300i,400,400i,500,500i,600,700,700i,800,800i,900,900i" rel="stylesheet">
</head>
<body>
<div class="container">
<div class="overlay">
<p class="screen">EXPLORE</p>
<div class="intro">
<button class="myBtn" onclick="fadeOut()">EXPLORE</button>
</div>
</div>
<div class="overlay-2"></div>
<div class="content">
<h1>--Pratham Intro--</h1>
<p class="data">Lorem ipsum dolor sit amet, consectetur adipisicing elit. Quasi eaque blanditiis culpa, voluptate reprehenderit sapiente quibusdam odio eum beatae autem quaerat tempora et vitae sint, porro assumenda distinctio eos? Nesciunt!</p>
</div>
</div>
<script>
function fadeOut() {
TweenMax.to(".myBtn", 1, {
y: -100,
opacity: 0
});
TweenMax.to(".screen", 2, {
y: -400,
opacity: 0,
ease: Power2.easeInOut,
delay: 2
});
TweenMax.from(".overlay", 2, {
ease: Power2.easeInOut
});
TweenMax.to(".overlay", 2, {
delay: 2.6,
top: "-110%",
ease: Expo.easeInOut
});
TweenMax.to(".overlay-2", 2, {
delay: 3,
top: "-110%",
ease: Expo.easeInOut
});
TweenMax.from(".content", 2, {
delay: 3.2,
opacity: 0,
ease: Power2.easeInOut
});
TweenMax.to(".content", 2, {
opacity: 1,
y: -300,
delay: 3.2,
ease: Power2.easeInOut
});
}
</script>
</body>
</html>