Blog - //.nkotov
  • 🏠
  • #️⃣
  • 🗒
  • #>_

CSS

A collection of 1 post
Adding Noise to Elements
CSS

Adding Noise to Elements

To add noise to a page or elements, use the following javascript code: const noise = () => { let canvas, ctx; let wWidth, wHeight; let noiseData = []; let frame = 0; let loopTimeout; // Create Noise const createNoise = () => { const idata = ctx.createImageData(wWidth, wHeight); const buffer32 = new Uint32Array(idata.data.buffer); const len = buffer32.
27 Dec 2023 1 min read
Page 1 of 1
Blog - //.nkotov © 2025
  • Donates
Powered by Ghost