-
Notifications
You must be signed in to change notification settings - Fork 0
/
card.html
272 lines (226 loc) · 7 KB
/
card.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
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
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<style>
body{
font-size: 120%;
background: url("bg1.jpg");
text-align: left;
background-size: cover;
}
.card {
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
max-width: 300px;
margin: auto;
text-align: center;
font-family: arial;
font-size: 19px;
background: white;
border: white;
padding: 0.8px;
display: block;
background-blend-mode: overlay;
}
.title {
color: grey;
font-size: 20px;
}
.contact {
border:1px;
outline: 0;
display: inline-block;
padding: 0.3px;
color: white;
background-color: #000;
text-align: center;
width: 100%;
font-size: 15px;
}
a {
text-decoration: none;
font-size: 22px;
color: black;
text-align: left;
}
button:hover, a:hover {
opacity: 0.7;
}
#loader{
margin: 345px auto;
background: #F8F8FF;
background-size: cover;
text-align: left;
position: relative;
font-family: "Lucida Handwriting";
}
h1{
font-family: 'Actor', sans-serif;
color:black;
font-size:20px;
letter-spacing:05px;
font-weight:200;
text-align:right;
}
h2{
font-family: 'Actor', sans-serif;
color:black;
font-size:20px;
letter-spacing:05px;
font-weight:200;
text-align:left;
}
#loader span{
width:16px;
height:16px;
border-radius:50%;
display:inline-block;
position:absolute;
left:49.16%;
margin-left:-10px;
-webkit-animation:3s infinite linear;
-moz-animation:3s infinite linear;
-o-animation:3s infinite linear;
}
@-webkit-keyframes kanan {
0% {-webkit-transform:translateX(20px);
}
50%{-webkit-transform:translateX(-20px);
}
100%{-webkit-transform:translateX(20px);
z-index:200;
}
}
@-moz-keyframes kanan {
0% {-moz-transform:translateX(20px);
}
50%{-moz-transform:translateX(-20px);
}
100%{-moz-transform:translateX(20px);
z-index:200;
}
}
@-o-keyframes kanan {
0% {-o-transform:translateX(20px);
}
50%{-o-transform:translateX(-20px);
}
100%{-o-transform:translateX(20px);
z-index:200;
}
}
@-webkit-keyframes kiri {
0% {-webkit-transform:translateX(-20px);
z-index:200;
}
50%{-webkit-transform:translateX(20px);
}
100%{-webkit-transform:translateX(-20px);
}
}
@-moz-keyframes kiri {
0% {-moz-transform:translateX(-20px);
z-index:200;
}
50%{-moz-transform:translateX(20px);
}
100%{-moz-transform:translateX(-20px);
}
}
@-o-keyframes kiri {
0% {-o-transform:translateX(-20px);
z-index:200;
}
50%{-o-transform:translateX(20px);
}
100%{-o-transform:translateX(-20px);
}
}
</style>
</head>
<body onload="myFunction()" style="margin:0;">
<div id="loader">
<h2> <a style="font-family: 'Comic Sans MS'" class="typewrite" data-period="1400" data-type='["Welcome To Admiria.", "A place where you can find the top-class brands and products.","It was founded on February,2019.","Currently it is worth $13B","The person behind this business showed his sheer dedication.","He is none other than the Hard-working.." ]'>
<span class="wrap"></span>
</a></h2>
<span></span>
<span></span>
<span></span>
</div>
<div style="display:none;" id="myDiv" class="animate-bottom">
<h1 style="color: transparent;text-align:center;font-size: 30px">Hello</h1>
<div class="card">
<img src="ijaz.jpg" alt="Ijaz Ahmed" style="width:100%">
<h>Ijaz Ahmed</h>
<p class="title">CEO & Founder</p>
<p>Admiria</p>
<div style="margin: 24px 0;">
<a href=""><i class="fa fa-instagram"></i></a>
<a href=""><i class="fa fa-facebook"></i></a>
</div>
<div class="contact">
<p>[email protected]</p>
</div>
</div>
</div>
<script>
var myVar;
function myFunction() {
myVar = setTimeout(showPage, 39000);
}
function showPage() {
document.getElementById("loader").style.display = "none";
document.getElementById("myDiv").style.display = "block";
}
var TxtType = function(el, toRotate, period) {
this.toRotate = toRotate;
this.el = el;
this.loopNum = 0;
this.period = parseInt(period,10) || 1400;
this.txt = '';
this.tick();
this.isDeleting = false;
};
TxtType.prototype.tick = function() {
var i = this.loopNum % this.toRotate.length;
var fullTxt = this.toRotate[i];
if (this.isDeleting) {
this.txt = fullTxt.substring(0, this.txt.length - 1);
} else {
this.txt = fullTxt.substring(0, this.txt.length + 1);
}
this.el.innerHTML = '<span class="wrap">'+this.txt+'</span>';
var that = this;
var delta = 200 - Math.random() * 100;
if (this.isDeleting) { delta /= 2; }
if (!this.isDeleting && this.txt === fullTxt) {
delta = this.period;
this.isDeleting = true;
} else if (this.isDeleting && this.txt === '') {
this.isDeleting = false;
this.loopNum++;
delta = 500;
}
setTimeout(function() {
setTimeout(showPage,72400);
that.tick();
}, delta);
};
window.onload = function() {
var elements = document.getElementsByClassName('typewrite');
for (var i=0; i<elements.length; i++) {
var toRotate = elements[i].getAttribute('data-type');
var period = elements[i].getAttribute('data-period');
if (toRotate) {
new TxtType(elements[i], JSON.parse(toRotate), period);
}
}
// INJECT CSS
var css = document.createElement("style");
css.type = "text/css";
css.innerHTML = ".typewrite > .wrap { border-right: 0.08em solid #fff}";
document.body.appendChild(css);
};
</script>
</body>
</html>