html
html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
</head>
<body>
<div class="container">
<div id="dqr">
</div></br>
</div>
<div id="sm">
<input type="submit" value="mL">
<input type="submit" value="mR">
<input type="submit" value="mB">
<input type="submit" value="movT">
</div>
</body>
</html>
Enter to Rename, Shift+Enter to Preview
css
css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
.container{
width:150px;
height:150px;
border: 1px solid #333;
margin:0 auto;
position:absolute;
top:40px;
left:100px;
}
#dqr{
margin: 0;
padding: 0;
width:10px;
height:10px;
background-color: #333;
position:relative;
animation-name:dqr;
animation-duration:5s;
transition: width 1s height 1s background-color: 1s
}
#dqr:active{
margin:0;
padding:0;
width:10px;
height:10px;
Enter to Rename, Shift+Enter to Preview
js
js
1
2
3
4
5
6
7
8
9
10
function mR(){
let position = document.getElementById("drq");
console.log(position)
}
//setInterval(mR,1000)
Enter to Rename, Shift+Enter to Preview
BROWSER
Console
Run