awdog
This commit is contained in:
parent
73d8b73284
commit
b69ddea942
1 changed files with 5 additions and 1 deletions
|
@ -33,6 +33,10 @@
|
||||||
color: #fff;
|
color: #fff;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#awdog {
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
|
||||||
/* unvisited link */
|
/* unvisited link */
|
||||||
a:link {
|
a:link {
|
||||||
color: pink;
|
color: pink;
|
||||||
|
@ -94,7 +98,7 @@
|
||||||
let a = Math.random() * Math.PI * 2;
|
let a = Math.random() * Math.PI * 2;
|
||||||
awdog.style.transform = "translate(" + (Math.cos(a) * intensity) + "px, " + (Math.sin(a) * intensity) + "px)";
|
awdog.style.transform = "translate(" + (Math.cos(a) * intensity) + "px, " + (Math.sin(a) * intensity) + "px)";
|
||||||
if (intensity > 0) {
|
if (intensity > 0) {
|
||||||
intensity -= 10 * dt;
|
intensity -= 20 * dt;
|
||||||
} else {
|
} else {
|
||||||
intensity = 0;
|
intensity = 0;
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue