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 lang="en-US>
<meta charset="UTF-8">
<title> Dancing Circles </title>
<link rel="stylesheet" href="HTMLnotes.css?version=1">
</head>
<body>
<p align="center"> <svg width="340" height="400" viewBox="20 -30 400 530" preventAspectRatio= "xMidYMid meet">
<rect width="450" height="440" x="0" y="0" fill="black" />
<defs>
<g id="dancingcircle" width="400" height="450">
<circle r="100" cx="100" cy="100" stroke-width="3" stroke="red" fill="none">
<animate attributeName="r" from="100" to="0" dur="1s" repeatCount="indefinite" fill="freeze" />
<animate attributeName="stroke" values="#f0f;#00f;#A34CBE;#000;#D6002F;#B20FS3;#000;#F24091;" dur="10s" fill="freeze" repeatCount="indefinite" /> </circle>
<circle r="0" cx="100" cy="100" stroke-width="3" stroke="red" fill="none">
<animate attributeName="r" from="0" to="100" dur="1s" repeatCount="indefinite" fill="freeze" />
<animate attributeName="stroke" values="#f0f;#00f;#A34CBE;#000;#D6002F;#B20FS3;#F24091;" dur="10s" fill="freeze" repeatCount="indefinite" /> </circle>
</g>
</defs>
<use href="#dancingcircle" />
Enter to Rename, Shift+Enter to Preview
css
css
1
2
3
body {
background-color: black;
}
Enter to Rename, Shift+Enter to Preview
js
js
1
Enter to Rename, Shift+Enter to Preview
BROWSER
Console
Run