UNPKG
bbpro
Version:
latest (6.1.5)
6.1.5
6.1.4
BrowserBox - remote browser isolation tool
github.com/BrowserBox/BrowserBox
i5ik/vf
bbpro
/
src
/
public
/
splash
/
rotate.js
12 lines
(9 loc)
•
264 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
let
rotation =
0
;
function
animateGradient
(
) {
const
ring =
document
.
getElementById
(
'ring'
); rotation = (rotation +
1
) %
360
; ring.
style
.
rotate
=
`
${-rotation}
deg`
;
requestAnimationFrame
(animateGradient); }
// Initialize the animation
animateGradient
();