<!DOCTYPE html>
<html lang="en">
<head>
<title>SVG Fundamental - Sol Lewitt</title>
<style>
body {
margin: 0;
overflow: hidden;
}
</style>
</head>
<body>
<script>
const svg = document.createElementNS(
'http://www.w3.org/2000/svg',
'svg'
);
const width = window.innerWidth;
const height = window.innerHeight;
svg.setAttribute('width', width);
svg.setAttribute('height', height);
document.body.appendChild(svg);
function createAnimateRadius() {
const animateColor = document.createElementNS(
// const is block scoped, no reassignments
'http://www.w3.org/2000/svg',
'animate'
);
animateColor.setAttribute(
'attributeName',
'r'
);
animateColor.setAttribute('begin', '0s');
animateColor.setAttribute('dur', '15s');