<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
<style>
#div{width: 100px;height: 100px;margin: 100px auto;background: red}
</style>
</head>
<body>
<div id="div" >
<a href="" name="reg" style="display: none;"></a>
<img src=""/>
</div>
<script>
var div = document.getElementById('div')
var t = 1;
setInterval(function(){
t++;
div.style.transform = 'rotate('+t+'deg)';
},10)
</script>
</body>
<html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
<style>
#div{width: 100px;height: 100px;margin: 100px auto;background: red}
</style>
</head>
<body>
<div id="div" >
<a href="" name="reg" style="display: none;"></a>
<img src=""/>
</div>
<script>
var div = document.getElementById('div')
var t = 1;
setInterval(function(){
t++;
div.style.transform = 'rotate('+t+'deg)';
},10)
</script>
</body>
<html>