MCPcopy Create free account
hub / github.com/cssinjs/jss / getRandomTransform

Function getRandomTransform

examples/function-values/utils.js:6–10  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4export const getRandomColor = () => `#${Math.floor(Math.random() * 0x1000000).toString(16)}`
5
6export const getRandomTransform = () => {
7 const x = random(0, window.innerWidth)
8 const y = random(0, window.innerHeight)
9 return `translate3d(${x}px, ${y}px, 0)`
10}
11
12const stats = (() => {
13 const statsInstance = new Stats()

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected