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>
<title>Page Title</title>
</head>
<body>
<p><b>❤️</b>
<br>
<small>😍 love you all 🥰</small>
</p>
</body>
<script>
const getQr=(el)=>{
return document.querySelector(el);
}
let p=getQr("p");
const move=(x,y)=>{
p.style.marginLeft=x+"px";
p.style.marginTop=y+"px";
}
const handleDrag=(e)=>{
move(e.touches[0].clientX,e.touches[0].clientY);
}
onload=()=>{
p.style.marginTop=screen.height/2-180+"px";
p.style.marginLeft=screen.width/2-180+"px";
addEventListener("touchstart",handleDrag)
Enter to Rename, Shift+Enter to Preview
css
css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
body {
background-color: black;
color: white;
}
p{
text-align:center;
}
p b{
animation:fa 1s infinite;
}
@keyframes fa{
0%{font-size:60px;}
100%{font-size:100px;}
}
Enter to Rename, Shift+Enter to Preview
js
js
1
//js on html script tag
Enter to Rename, Shift+Enter to Preview
BROWSER
Console
Run