html
html
1
2
3
4
5
6
7
8
9
10
11
12
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
</head>
<body>
<div class="didi"><b><i>+100 Followers</i></b></div>
<br>
<button id="bu" onclick="func1()">SURPRISE</button>
</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
body {
}
.didi{
width:0px;
height:0px;
position:absolute ;
background-color: black;
border-radius:50%;
justify-content:center ;
align-items:center ;
display:flex;
color: white;
transition:all 2s ease; transform:translate(25px , 110px);
font-size:0px;
}
.didi.css{
width:300px;
height:300px;
font-size:30px;
font-size:35px;
}
#bu{
background-color: black;
color: white;
}
Enter to Rename, Shift+Enter to Preview
js
js
1
2
3
4
function func1(){
var x= document.querySelector(".didi")
x.classList.toggle("css")
}
Enter to Rename, Shift+Enter to Preview
BROWSER
Console
Run