Image FXcssimagelab.com
Overlay · 29 / 56

God Rays

Crepuscular light shafts fan out from an off-frame point across the photo, like sun through clouds.

Image
Green natural landscape

Hover the photo to apply the effect — move away to compare.

Adjust
24%
8deg
0.5
Metadata
interaction
Always on
browser
Modern — CSS masks
reduced motion
static
touch fallback
Identical on touch
Edit the CSS above — the preview updates live.

About God Rays

God Rays fans crepuscular light shafts from an off-frame source point across the image. It's a ::before built from a repeating-conic-gradient (alternating light wedges and gaps radiating from the source), softened with blur, screen-blended over the photo, and faded before the frame edge by a radial mask so the rays don't hit a hard border. Tune --ifx-gr-x (horizontal source), --ifx-gr-angle (fan rotation), --ifx-gr-op (intensity) and --ifx-gr-color (warmth). Fully static: identical on touch and needs no reduced-motion handling.

Use cases

  • hero
  • landscape
  • editorial
  • gallery

Browser support

Modern — CSS masks.

Accessibility

  • Essential content is never hidden behind hover.
  • No motion — nothing to reduce.
  • Touch fallback: identical on touch.