Box Shadow CSS Generator - Online Shadow Effect Designer
Design layered box shadows interactively and get the CSS code in real time. Adjust offset, blur, spread, and color. Essential tool for UI designers.
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.
Design layered box shadows interactively and get the CSS code in real time. Adjust offset, blur, spread, and color. Essential tool for UI designers.
Generate custom placeholder images for mockups and layouts. Specify dimensions, colors, and text. Export as PNG or use the generated data URI. Entirely browser-based.
Learn how to let content extend a few pixels beyond a clip boundary with overflow‑clip‑margin. Interactive playground.
Visually configure scroll‑snap containers and items. Adjust alignment, stop behavior, and padding. Copy the clean CSS instantly.
Interactively add and adjust multiple box shadows on a sample element. Drag sliders for offset, blur, spread, and color. Copy the clean CSS code instantly.
Create inner shadows for a pressed or sunken effect. Visually adjust and copy the CSS. Learn inset.
Use isolation: isolate to contain mix‑blend‑mode and filters. See the visual difference with and without. Quick demo.
Build a custom CSS reset by toggling which elements to normalize. Copy the resulting stylesheet. Lean and clean.
Design neumorphic elements by adjusting box‑shadow parameters. Real‑time preview and CSS output. For modern soft UI interfaces.
Paste code and generate a beautiful, syntax‑highlighted PNG image. Choose theme and window style. Shareable code pics.
Create a 'SALE' or 'NEW' corner ribbon in pure CSS. Adjust colors, position, and text. Great for e‑commerce.
Design a custom focus indicator with outline, offset, and box‑shadow. Preview on interactive elements. Copy the CSS.
Design a fully styled scrollbar with colors, width, radius, and hover effects. Supports both ::-webkit‑scrollbar and Firefox scrollbar‑width.
Design a fully styled scrollbar with colors, width, and border radius. Get the CSS for Chrome and Firefox.
Upload an image and generate the CSS to use it as a custom mouse cursor. Test it live. Fun for personal websites.
Visually experiment with Flexbox container and item properties. See the layout update in real time and copy the CSS. Learn by doing, fully interactive.
Toggle contain: strict, content, paint, layout and see how it affects rendering. Understand isolation for faster pages.
Generate a random HTML/CSS card with different box model properties. Inspect and guess the size. For learners.
Generate a range of tints and shades from a single hex color. Ideal for data visualization, UI design systems, and Tailwind custom palette creation. Local tool.
Adjust margin, border, padding, and content sizes interactively and see the rendered box model. Get the exact CSS. Teach or learn layout.
Design a pure CSS tooltip with custom text, position (top/bottom/left/right), and arrow. Copy the clean code.
Understand @layer by visually ordering style layers and seeing which rules win. Fix specificity battles. Modern CSS architecture.
Design a tooltip that appears on hover without JavaScript. Choose positioning, arrow, and animation. Copy the clean HTML/CSS.
Generate a grey placeholder image with custom text and dimensions. Data URI output. No external service.
Upload an image and get a suggested alt text description using a local vision model (WASM). Improve SEO and accessibility fast.
Enter container width, number of items, gap, and flex‑basis. See the resulting sizes instantly. Plan your flex layout.
Press Ctrl+V to paste an image from your clipboard into the page. See dimensions and download. Simple utility.
Create a custom cookie consent banner with text, button styles, and colors. Copy the ready‑to‑use HTML/CSS/JS snippet.
Paste a screenshot or image, crop it, and add arrows, rectangles, and text. Essential for bug reports and tutorials.
Add customizable padding to any image. Make it square or fit a specific aspect ratio by adding whitespace. Download padded PNG.