Skip to content

Commit c2201f5

Browse files
add: adds disco lights animation (#2881)
Co-authored-by: Laureline Paris <[email protected]>
1 parent b972ec3 commit c2201f5

File tree

3 files changed

+74
-0
lines changed

3 files changed

+74
-0
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8">
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
6+
<title>Disco Lights Animation</title>
7+
<link rel="stylesheet" href="styles.css">
8+
</head>
9+
<body>
10+
<p>DISCO<br>LIGHTS</p>
11+
</body>
12+
</html>
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"githubHandle": "shanolhere",
3+
"artName": "discoLightsAnimation"
4+
}
Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
2+
body{
3+
-webkit-perspective: 500px;
4+
perspective: 500px;
5+
background: black;
6+
}
7+
8+
p{
9+
color:black;
10+
width:420px;
11+
height:250px;
12+
font-family: 'Oswald', sans-serif;
13+
font-size:9em;
14+
line-height:1;
15+
margin:0;
16+
padding:0;
17+
-webkit-transform: rotateX(25deg) rotateY(20deg) rotateZ(-3deg);
18+
transform: rotateX(25deg) rotateY(20deg) rotateZ(-3deg);
19+
position:absolute;
20+
left:50%;
21+
top:50px;
22+
margin-left:-180px;
23+
-webkit-animation: anim 3s;
24+
-webkit-animation-timing-function: linear;
25+
-webkit-animation-iteration-count:infinite;
26+
animation: anim 3s;
27+
animation-timing-function: linear;
28+
animation-iteration-count:infinite;
29+
}
30+
31+
@-webkit-keyframes anim {
32+
0%{text-shadow:-6px 4px 0px red;}
33+
10% {text-shadow:4px -6px 0px green;}
34+
20% {text-shadow:-9px 4px 0px blue;}
35+
30% {text-shadow:4px -6px 0px yellow;}
36+
40% {text-shadow:-8px 4px 0px orange;}
37+
50% {text-shadow:4px 5px 0px purple;}
38+
60% {text-shadow:-6px 4px 0px brown;}
39+
70% {text-shadow:4px 7px 0px pink;}
40+
80% {text-shadow:-9px -4px 0px lime;}
41+
90% {text-shadow:4px -6px 0px cyan;}
42+
100% {text-shadow:-9px 4px 0px teal;}
43+
}
44+
45+
@keyframes anim {
46+
0%{text-shadow:-6px 4px 0px red;}
47+
10% {text-shadow:4px -6px 0px green;}
48+
20% {text-shadow:-9px 4px 0px blue;}
49+
30% {text-shadow:4px -6px 0px yellow;}
50+
40% {text-shadow:-8px 4px 0px orange;}
51+
50% {text-shadow:4px 5px 0px purple;}
52+
60% {text-shadow:-6px 4px 0px brown;}
53+
70% {text-shadow:4px 7px 0px pink;}
54+
80% {text-shadow:-9px -4px 0px lime;}
55+
90% {text-shadow:4px -6px 0px cyan;}
56+
100% {text-shadow:-9px 4px 0px teal;}
57+
}
58+

0 commit comments

Comments
 (0)