html
html
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
<!DOCTYPE html>
<html>
<head>
<style>
div {
width: 50px;
height: 50px;
background-color: green;
position: relative;
animation: myfirst 5s linear 2s infinite alternate;
}
@keyframes myfirst {
0% {background-color:violet; left:0px; top:0px;}
25% {background-color:indigo; left:200px; top:0px;}
50% {background-color:blue; left:200px; top:200px;}
75% {background-color:green; left:0px; top:200px;}
100% {background-color:yellow; left:0px; top:0px;}
}
</style>
</head>
<body><p> keep pressing on the box and see </p></body>
<div></div>
</html>
Enter to Rename, Shift+Enter to Preview
css
css
1
2
3
4
5
p{
text-align: bottom;
color: red;
}
Enter to Rename, Shift+Enter to Preview
js
js
1
alert("need some support")
Enter to Rename, Shift+Enter to Preview
BROWSER
Console
Run