-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathanim.html
More file actions
236 lines (211 loc) · 6.53 KB
/
anim.html
File metadata and controls
236 lines (211 loc) · 6.53 KB
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
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Responsive Animated Card</title>
<link href="https://fonts.googleapis.com/css2?family=Cinzel:wght@400;700&display=swap" rel="stylesheet">
<style>
/* Global styles to ensure it scales on any device */
body, html {
font-family: 'Cinzel', serif;
height: 100%;
display: flex;
justify-content: center;
align-items: center;
background-color: #1e2a3a;
margin: 0;
padding: 0;
}
/* Card styling */
.card {
width: 90vw;
max-width: 350px;
height: 50vh;
background: #1e2a3a;
position: relative;
display: grid;
place-content: center;
border-radius: 10px;
overflow: hidden;
transition: all 0.5s ease-in-out;
animation: cardLoad 1s ease-in-out forwards;
}
#logo-main, #logo-second {
height: 100%;
object-fit: contain;
}
#logo-main {
fill: #d0a933;
}
#logo-second {
padding-bottom: 10px;
fill: none;
stroke: #d0a933;
stroke-width: 1px;
}
.bottom-text {
font-family: 'Cinzel', serif; /* Font applied here */
position: absolute;
left: 50%;
bottom: 13px;
transform: translateX(-50%);
font-size: 8px;
text-transform: uppercase;
padding: 0px 5px 0px 8px;
color: #d0a933;
background: #1e2a3a;
opacity: 0;
letter-spacing: 7px;
animation: bottomTextLoad 1s ease-in-out 1s forwards;
}
.content {
transition: all 0.5s ease-in-out;
}
.content .logo {
height: 45px;
position: relative;
width: 43px;
overflow: hidden;
animation: logoLoad 2s ease-in-out 0.5s forwards;
}
.content .logo .logo1 {
height: 45px;
width: 60px;
position: absolute;
left: 0;
}
.content .logo .logo2 {
height: 43px;
position: absolute;
left: 33px;
}
.content .logo .trail {
position: absolute;
right: 0;
height: 100%;
width: 100%;
opacity: 0;
}
.content .logo-bottom-text {
font-family: 'Cinzel', serif; /* Font applied here */
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
margin-top: 30px;
color: #d0a933;
padding-left: 8px;
font-size: 10px;
opacity: 0;
letter-spacing: none;
animation: logoBottomTextLoad 1s ease-in-out 1.5s forwards;
}
@keyframes cardLoad {
0% {
transform: scale(1);
opacity: 0;
}
100% {
transform: scale(1.1);
opacity: 1;
}
}
@keyframes logoLoad {
0% {
width: 43px;
}
100% {
width: 134px;
}
}
@keyframes bottomTextLoad {
0% {
opacity: 0;
letter-spacing: 7px;
}
100% {
opacity: 1;
letter-spacing: 3px;
}
}
@keyframes logoBottomTextLoad {
0% {
opacity: 0;
}
100% {
opacity: 1;
}
}
@keyframes trail {
0% {
background: linear-gradient(90deg, rgba(189, 159, 103, 0) 90%, rgb(208, 169, 51)100%);
opacity: 0;
}
30% {
background: linear-gradient(90deg, rgba(189, 159, 103, 0) 70%, rgb(208,169,51) 100%);
opacity: 1;
}
70% {
background: linear-gradient(90deg, rgba(189, 159, 103, 0) 70%, rgb(208,169,51) 100%);
opacity: 1;
}
95% {
background: linear-gradient(90deg, rgba(189, 159, 103, 0) 90%, rgb(208,169,51) 100%);
opacity: 0;
}
}
/* Responsive Design */
@media (max-width: 768px) {
.card {
width: 80vw;
height: 60vh;
}
}
@media (max-width: 480px) {
.card {
width: 90vw;
height: 65vh;
}
.bottom-text {
font-size: 10px;
letter-spacing: 5px;
}
.content .logo-bottom-text {
font-size: 20px;
}
}
</style>
</head>
<body>
<div class="card">
<div class="border"></div>
<div class="content">
<div class="logo">
<div class="logo1">
<img src="tlogo.png" alt="logo1" id="logo-main">
</div>
<div class="logo2">
<img src="tlogo2.png" alt="logo2" id="logo-second">
</div>
<span class="trail"></span>
</div>
<span class="logo-bottom-text"><br><br> WELCOME !!</span>
</div>
<span class="bottom-text">~ saviours </span>
</div>
<script>
const language = localStorage.getItem("lang") || "en"; // Default language
fetch("languages.json")
.then(response => response.json())
.then(data => {
document.getElementById("welcomeText").textContent = data[language].welcome;
document.getElementById("savioursText").textContent = data[language].saviours;
});
// Redirect to another page after the animation ends
setTimeout(() => {
window.location.href = "index.html"; // Replace with your target page URL
}, 6000); // Adjust time to match animation duration (6 seconds in this case)
</script>
</body>
</html>