CSS Mask Parallax Demo - Online Scroll Reveal Effect
Use CSS masks and fixed backgrounds to create a unique parallax reveal effect. Copy the code. No JavaScript.
UD5 Toolkit
Copy and paste this CSS into your stylesheet. Works with any <div> that has a background image.
CSS mask-image is a property that lets you use an image, gradient, or SVG as a mask layer to hide or reveal portions of an element. Similar to how alpha channels work in image editing, the mask's luminance determines visibility: black areas hide the element, white areas reveal it, and gray values create partial transparency. This tool generates mask-image CSS with proper -webkit- prefixes for cross-browser compatibility. Masking is GPU-accelerated in most modern browsers, making it performant for animations.
While both can hide parts of an element, they work differently. clip-path creates a hard vector-based crop with sharp edges and no soft transitions. mask-image supports alpha transparency, allowing smooth feathered edges, gradient fades, and soft vignette effects. Use clip-path for geometric crops with sharp boundaries, and mask-image for artistic reveals with soft edges, blur transitions, or luminance-based transparency effects.
CSS mask-image is supported in all modern browsers: Chrome 120+, Firefox 53+, Safari 15.4+, and Edge 120+. For older Safari and Chrome versions (pre-2023), the -webkit-mask-image prefix is required. This tool automatically generates both the standard and -webkit- prefixed versions to ensure maximum compatibility. As of 2024, global support exceeds 94% of web users. For IE11, consider using SVG masks as a fallback.
You can create custom SVG masks by defining a <mask> element in SVG and referencing it via mask-image: url(#mask-id), or inline the SVG as a data URI. For example, use an SVG <path> with any custom shape as the mask source. The key principle: white fill in the SVG = visible area, black = hidden. This tool generates inline SVG data URIs for heart, star, and diamond shapes so the CSS is self-contained without external files.
Yes! CSS mask properties including mask-size, mask-position, and gradient-based masks can be animated using CSS transition or @keyframes. This tool generates ready-to-use animation keyframes for zoom reveals, directional wipes, and pulsing effects. For best performance, animate mask-size and mask-position rather than recreating the mask on each frame, as these trigger compositor-only repaints (no layout recalculations).
Feathering (soft edge) controls how gradually the mask transitions from fully visible to fully hidden. A feather of 0 creates a hard, sharp edge. Higher feather values create a smooth gradient fade at the mask boundary, which is essential for natural-looking vignettes, spotlight effects, and professional image reveals. For gradient-based masks (circle, ellipse), feathering is achieved by expanding the gradient transition zone. For SVG shapes, a feGaussianBlur filter is applied.
CSS masks are generally GPU-accelerated and performant. Using radial-gradient or linear-gradient as masks is extremely efficient. SVG-based masks with complex paths or heavy blur filters may have a slightly higher rendering cost but are still well-optimized in modern browsers. For the best performance on image-heavy pages, avoid animating dozens of masked elements simultaneously and prefer gradient-based masks over complex SVG filters when possible.
Use CSS masks and fixed backgrounds to create a unique parallax reveal effect. Copy the code. No JavaScript.
See how overflow: visible, hidden, scroll, and auto behave with real content. Clone to test with your text.
Customize falling snow particles with pure CSS or canvas. Adjust speed, size, and wind. Copy the code for your website.
Pixelate or censor parts of an image by dragging. Adjust block size for mosaic effect. Useful for hiding faces or sensitive data. Client-side processing.
Apply content‑visibility: auto to off‑screen sections and see the rendering cost drop. Demos for infinite scroll optimization.
Enter a router's MAC address or serial and generate the common default WPA passphrase for major ISP brands. Educational purpose only.
Design a layout where nested grids share track sizes with their parent via subgrid. Copy the complete CSS.
Pick colors for the shadcn/ui design system and generate the complete CSS variable theme file. Copy into your project.
Paste your CSS and see warnings for properties that have limited browser support. Links to CanIUse. Modernize safely.
Format a list of Q&A pairs and export as a CSV ready for Anki import. Simple line‑based template. Local.
Style underlines, overlines, and strike-throughs with colors, wavy styles, and thickness. Modern CSS text‑decoration.
Generate a random medieval occupation with a short description. For NPCs or historical curiosity. Local list.
Generate a hardboiled film noir plot with a detective, a dame, and a McGuffin. Great for creative writing prompts.
Generate a grand, aristocratic title like 'Duke of Waffleshire'. Perfect for silly fun or RPG characters. Local.
Design a button or card that glows on hover. Adjust shadow color, spread, and transition. Copy the CSS. Rich UI.
Create a realistic letterpress (debossed) text effect using CSS text‑shadow and background. Adjust depth and light direction. Copy code.
Generate a realistic‑sounding dinosaur name and see a fun description. Perfect for kids and writers.
Generate random but realistic‑looking data arrays (users, products, orders) with typos and missing fields. For test robustness.
Create a customizable checkerboard or grid background using pure CSS gradients. Adjust cell size and colors. Copy the code.
Create a custom HTML/CSS progress bar with percentage, colors, and animation. Copy the code. Modern UI element.
Fill in a few details and get a polished resignation letter. No data stored. Instant copy or print.
Paste plain text and turn it into a nested outline using indent levels or Markdown headings. Great for planning.
Upload a small pixel art image and get a CSS grid layout that recreates it using divs. Novelty developer tool.
Convert short text into a black‑and‑white Braille bump image ready for embossing. Educational and inclusive.
Generate a random, somewhat meaningful song lyric line. Write your own hit with AI‑free randomness. All local.
A replica of the famous Flexbox Froggy game: solve alignment puzzles by writing CSS. Progress saved locally. Fun frontend learning.
Generate a realistic‑sounding exoplanet designation (e.g., Kepler‑442b) and a sci‑fi planet description. For worldbuilding.
Create a realistic‑looking fake tweet with any name, handle, text, likes, and retweets. Just for laughs. All local canvas.
Generate magic squares of odd order (3x3, 5x5, …). See the sum constant and verify rows, columns, diagonals. Educational math toy.
One click to get a hilarious excuse for being late, missing homework, or not doing chores. Pure comedy.