<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
</head>
<style>
.box{
width: 30px;
height: 30px;
background-color: #f00;
position:absolute;
left: 300px;
top: 300px;
border-radius: 50%;
}
.radius{
width: 200px;
height: 200px;
border:1px solid #000;
border-radius: 50%;
position:absolute;
left:115px;
top:215px;
}
</style>
<body>
<div class="box"></div>
<div class="radius"></div>
</body>
<script>
var r = 100
var x = 200
var y = 300
var deg = 0
var box = document.querySelector('.box');
setInterval(function(){
deg++
var l = Math.cos(deg * Math.PI / 180) * r + x
var t = Math.sin(deg * Math.PI / 180) * r + y
box.style.left = l + 'px'
box.style.top = t + 'px'
}, 20)
</script>
</html>