Loading effect…
Loading preview…
images · html · free
Images resolve from coarse pixels to full detail on a canvas.
npx znverse add canvas-pixel-revealLoads gsap from a CDN.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Canvas Pixel Reveal</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<h1 class="pixel-text" data-image="images/sunrise.svg"><span>Sunrise</span></h1>
<h1 class="pixel-text" data-image="images/wireframe.svg"><span>Wireframe</span></h1>
<h1 class="pixel-text" data-image="images/pixel-forge.svg"><span>Pixel Forge</span></h1>
<div class="preview"><canvas></canvas></div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.12.5/gsap.min.js"></script>
<script src="script.js"></script>
</body>
</html>
Images resolve from coarse pixels to full detail on a canvas.
Copy the files in src/ into a static page. Everything runs in the browser with no build step.
Originally published at https://github.com/Hank-D-Tank/pixel-canvas.