Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit9e6c23b

Browse files
authored
Add files via upload
1 parentde81aa9 commit9e6c23b

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

‎assets/js/animate.js

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
varrandomWidth=5000;
2+
varrandomBottom=2000;
3+
4+
functionanimate(){
5+
varglitch=document.querySelector('.glitch');
6+
glitch.classList.remove('glitchit');
7+
voidglitch.offsetWidth;
8+
glitch.classList.add('glitchit');
9+
clearInterval(timer);
10+
timer=setInterval(animate,parseInt(randomBottom+Math.random()*randomWidth));
11+
}
12+
13+
vartimer=setInterval(animate,randomBottom);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp