forked from GeekNerds/Hacktoberfest-2022
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathNo_Smoking_Animation.html
More file actions
106 lines (92 loc) · 2.62 KB
/
No_Smoking_Animation.html
File metadata and controls
106 lines (92 loc) · 2.62 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>No Smoking Animation</title>
</head>
<body>
<div class="container">
<div class="smoke">
<span style="--i:1;"><i>Nooooo</i>Smooooooooking<i>|</i></span>
<span style="--i:2;"><i>Nooooo</i>Smooooooooking<i>|</i></span>
<span style="--i:3;"><i>Nooooo</i>Smooooooooking<i>|</i></span>
<span style="--i:4;"><i>Nooooo</i>Smooooooooking<i>|</i></span>
<span style="--i:5;"><i>Nooooo</i>Smooooooooking<i>|</i></span>
<span style="--i:6;"><i>Nooooo</i>Smooooooooking<i>|</i></span>
<span style="--i:7;"><i>Nooooo</i>Smooooooooking<i>|</i></span>
<span style="--i:8;"><i>Nooooo</i>Smooooooooking<i>|</i></span>
<span style="--i:9;"><i>Nooooo</i>Smooooooooking<i>|</i></span>
<span style="--i:10;"><i>Nooooo</i>Smooooooooking<i>|</i></span>
</div>
</div>
<style>
@import url('https://fonts.googleapis.com/css?family=Poppins:100,200,300,400,500,600,700,800,900');
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'poppins';
}
body {
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
background: #222;
}
.container {
position: absolute;
display: flex;
justify-content: center;
align-items: center;
}
.container .smoke {
transform-style: preserve-3d;
animation: animate 15s linear infinite;
}
.container .smoke span {
position: absolute;
color: #fff;
font-size: 1.35em;
font-weight: 900;
text-transform: uppercase;
line-height: 0.76em;
text-shadow: 0 2px 5px rgba(0, 0, 0, 0.25);
transform: translate(-50%, -50%) rotateX(calc(var(--i) * 36deg)) translateZ(25px);
background: rgba(0, 0, 0, 0.25);
transform-style: preserve-3d;
}
.container .smoke span i {
font-style: normal;
color: #ec9535;
}
.container .smoke span i:first-child:after {
content: 'L';
color: #ccc;
text-transform: lowercase;
}
.container .smoke span i:last-child {
color: #f00;
filter: blur(2px);
text-shadow: -4px 0 2px #000,
8px 0 20px #f00,
8px 0 24px #f00,
8px 0 0 #222,
12px 0 #555,
16px 0 #666,
20px 0 #888,
24px 0 #999;
}
@keyframes animate {
0% {
transform: perspective(1000px) rotateX(0deg);
}
100% {
transform: perspective(1000px) rotateX(360deg);
}
}
</style>
</body>
</html>