switch to typescript
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
/**
|
||||
* On import, sets the global css variable `--random` to `Math.random()` before each draw
|
||||
* @module CSSRandom
|
||||
*/
|
||||
(function CSSRandom() {
|
||||
document.documentElement.style.setProperty('--random', Math.random().toString())
|
||||
requestAnimationFrame(CSSRandom)
|
||||
})()
|
||||
|
||||
export {}
|
||||
Reference in New Issue
Block a user