-
Notifications
You must be signed in to change notification settings - Fork 1
/
v1.html
84 lines (83 loc) · 2.64 KB
/
v1.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>ImaginAI Labs Banner</title>
<style>
body {
margin: 0;
padding: 0;
}
.banner {
width: 300px;
height: 250px;
background-color: yellow;
position: relative;
overflow: hidden;
font-family: Arial, sans-serif;
}
.logo {
font-size: 24px;
font-weight: bold;
position: absolute;
top: 15px;
left: 15px;
}
.frame {
position: absolute;
top: 60px;
width: 100%;
text-align: center;
opacity: 0;
}
.frame3-word {
font-size: 20px;
opacity: 0;
}
.cta {
width: 120px;
height: 40px;
background-color: blue;
color: white;
text-align: center;
line-height: 40px;
position: absolute;
bottom: 20px;
left: 90px;
cursor: pointer;
opacity: 0;
}
</style>
<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.9.1/gsap.min.js"></script>
</head>
<body>
<div class="banner">
<div class="logo">ImaginAI LABS</div>
<div class="frame" id="frame1">Discover the power of generative AI.</div>
<div class="frame" id="frame2">Revolutionizing text and image generations.</div>
<div class="frame" id="frame3">
<div class="frame3-word" id="word1">Experience</div>
<div class="frame3-word" id="word2">our</div>
<div class="frame3-word" id="word3">unique</div>
<div class="frame3-word" id="word4">AI</div>
<div class="frame3-word" id="word5">solutions.</div>
</div>
<div class="cta" id="cta">Learn More</div>
</div>
<script>
const tl = gsap.timeline();
tl.to("#frame1", {duration: 1, opacity: 1})
.to("#frame1", {duration: 1, opacity: 0, delay: 2})
.to("#frame2", {duration: 1, opacity: 1})
.to("#frame2", {duration: 1, opacity: 0, delay: 2})
.to("#frame3", {duration: 1, opacity: 1})
.to("#word1", {duration: 0.5, opacity: 1})
.to("#word2", {duration: 0.5, opacity: 1})
.to("#word3", {duration: 0.5, opacity: 1})
.to("#word4", {duration: 0.5, opacity: 1})
.to("#word5", {duration: 0.5, opacity: 1})
.to("#cta", {duration: 1, opacity: 1});
</script>
</body>
</html>