Add a layer of interactivity and elegance with JavaScript reveal effects. This collection showcases how content can gracefully enter the viewport - fading, sliding, scaling, or rotating into view - triggered by scroll position, hover events, or custom logic. Perfect for storytelling, portfolios, and landing pages.
21 JavaScript Reveal Effects
GSAP Staggered Blinds Reveal
demo & codeThis GSAP Staggered Blinds Reveal creates a cinematic transition effect often used in hero sections or between major content blocks. By manipulating a series of div elements acting as “slats,” the animation mimics a zipper or venetian blinds opening. As the user scrolls, the slats slide away and rotate sequentially, revealing the content underneath (or changing the state) in a synchronized wave motion.
Split Staggered Reveal Cards
demo & codeThis Split Staggered Reveal Card creates a dramatic, cinematic effect suitable for portfolios or featured content sections. Upon interaction, the background image recedes while two semi-transparent overlays slide in to create a high-contrast backdrop. Simultaneously, the title and description animate in with a precise staggered delay - letters for the title and words for the paragraph - powered by CSS variables.
Tearing Paper Photo Gallery
demo & codeThis Tearing Paper Photo Gallery is a technical marvel that simulates the physical act of ripping a photograph in half. Unlike simple 2D masking effects, this component uses WebGL (Three.js) to deform the geometry in 3D space. As the user drags downward, the “paper” mesh splits, rotates, and tears along a procedural edge, complete with lighting and shadow effects generated by custom shaders.
Cursor-Tracking Spotlight Reveal Effect
demo & codeThis Cursor-Tracking Spotlight Reveal Effect creates a sophisticated “x-ray” or “flashlight” interaction. Initially, the user sees plain text. As the mouse moves, a circular mask follows the cursor, revealing a hidden image underneath and simultaneously inverting the text color to white within the circle. This technique adds depth and playfulness to portfolio links or gallery items without disrupting the layout.
Ink Transition Scroll Effect
demo & codeThis Ink Transition Scroll Effect brings digital storytelling to life by mimicking the organic spread of ink on paper. Designed for a biography page, it reveals images using a “splatter” transition triggered by scrolling. It combines ScrollMagic for timing, GSAP for smooth text entry, and CSS Sprites for the complex ink mask animation.
GSAP Mask Mouse Effect
An intriguing user experience where hidden messages and a vibrant gradient background are revealed only under a “spotlight” following the cursor, featuring expansion animations upon interaction.
See the Pen GSAP Mask Mouse Effect.
Photo Animation on Text Hover
An elegant, minimalist section featuring smooth typographic animation and interactive elements that engage the user by revealing visual context upon reading.
See the Pen Photo Animation on Text Hover.
Photo Inview Animation: Venetian Blinds Effect
A high-end, editorial-style web design where content appears smoothly and coordinately, creating a sense of premium quality and attention to detail.
See the Pen Photo Inview Animation: Venetian Blinds Effect.
Stroke Logo Animation
An elegant, fluid, and hypnotic logo reveal animation that looks professional and draws attention to the branding.
See the Pen Stroke Logo Animation.
Blurry Loading
As the counter reaches 100%, the blurry image sharpens into focus, while the counter itself dissolves and fades away, revealing the content.
See the Pen Blurry Loading.
SVG Mask Waterfall Image Reveal
This captivating waterfall-style image reveal showcases a powerful synergy between technologies. A JavaScript for loop procedurally generates a series of <rect> elements within an SVG <mask>, which are then animated by GSAP in a continuous, yoyo-ing loop. The mesmerizing, chaotic effect is achieved using a random stagger (from: 'random') and a dramatic expo.easeInOut ease, creating a seamless and performant animation.
See the Pen SVG Mask Waterfall Image Reveal.
Animated Scroll-Triggered Timeline
A smooth vertical timeline featuring scroll-triggered element animation, implemented using efficient pure JavaScript DOM visibility tracking to enhance performance and content engagement.
See the Pen Animated Scroll-Triggered Timeline.
CSS Glitchy Text Reveal with Splitting.js
A demonstration of per-character text manipulation using Splitting.js to create a striking CSS glitch animation, where each character receives a unique set of random custom properties for varied and dynamic text reveal effects.
See the Pen CSS Glitchy Text Reveal with Splitting.js.
Reveal Hidden Text Effect
A dynamic interactive grid implemented on HTML5 Canvas, where the radius of each circle is calculated in real-time based on its squared distance from the cursor, creating a smooth attraction/repulsion effect on mouse movement.
See the Pen Reveal Hidden Text Effect.
Text Reveal (on Scroll) Effect
An elegant text reveal effect that uses the Intersection Observer API for lazy-loading animation upon entering the viewport and relies on GSAP to perform a smooth “wipe” using a scale transformation.
See the Pen Text Reveal (on Scroll) Effect.
Magic Wand Image Reveal Animation Effect
A unique “magic wand” effect where the element tracks the cursor using the Web Animations API and reveals the image within tiles by dynamically controlling the CSS variables --opacity and --blur based on the mouse position.
See the Pen Magic Wand Image Reveal Animation Effect.