خرید بک لینک
hi guys
I have this code
Code:

<html>
<head>
<title>title</title>
<style>
@keyframes test{
0%{background-color : red;}
50%{;}
75%{;}
100%{background-color:blue;}
}
#id1{
position : absolute;
top:20%;right:50%;
background-color: red;
width : 100px;
height : 100px;
border-radius : 50%;
transform : rotate(20deg);
animation : test 10s infinite;
}
</style>
<script>
function test()
{
document.getElementById("id1").style.left = "100px";
}
</script>
</head>
<body>
<div id="id1" onmousemove="test()">
</div>
</body>
</html>

When the mouse goes to the circle, the circle goes to the left
I want the circle go to the right after this operation And again, everything starts from the begiing

برچسب: نویسنده: آیلین رضوانی تاريخ: چهارشنبه 22 آذر 1396 ساعت: 18:28

صفحه بندی