html
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
<!DOCTYPE html>
<html>
<head>
<title>Disco Lights</title>
</head>
<body>
<div>
<h2> Discolights Preview</h2>
</div>
<div class="discolight">
<div class="partition">
<div class="circle red"></div>
<div class="circle blue"></div>
<div class="circle orange"></div>
</div>
<div class="partition">
<div class="circle green"></div>
<div class="circle red"></div>
<div class="circle blue"></div>
</div>
<div class="partition">
<div class="circle orange"></div>
<div class="circle green"></div>
<div class="circle red"></div>
</div>
<div class="partition">
<div class="circle blue"></div>
<div class="circle orange"></div>
Enter to Rename, Shift+Enter to Preview
css
css
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
body {
background-color: #000;
color: #ee6633;
}
.discolight{
width:276px;
height:288px;
background-color: #fff;
border:3px inset #335577;
-webkit-animation-duration: 3s;
-webkit-animation-delay: 1s;
-webkit-animation-name: colorchange2;
-webkit-animation-iteration-count: infinite;
}
.partition{
border:1px inset #335577;
height:70px;
width: 90px;
float:left;
-webkit-animation-duration: 1s;
-webkit-animation-delay: 1s;
-webkit-animation-name: partition-colorchange;
-webkit-animation-iteration-count: infinite;
}
@keyframes partition-colorchange {
from {}
to { border:1px inset #fff; }
}
Enter to Rename, Shift+Enter to Preview
js
js
1
alert("Ready to see disco lights, please like the code.")
Enter to Rename, Shift+Enter to Preview
BROWSER
Console
Run