rename .js files to .mjs
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
/**
|
||||
* 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())
|
||||
requestAnimationFrame(CSSRandom)
|
||||
})()
|
||||
Reference in New Issue
Block a user