Using d3.timer() to animate a bouncing ball
xxxxxxxxxx
<html lang="en">
<head>
<meta charset="UTF-8">
<script src="https://d3js.org/d3.v4.min.js"></script>
<link rel="stylesheet" href="style.css">
<title>Animation with D3</title>
</head>
<body>
<div id="vis"></div>
<script src="script.js"></script>
</body>
</html>
Modified http://d3js.org/d3.v4.min.js to a secure url
https://d3js.org/d3.v4.min.js