Masked Fade Overlay
Core Rule
Use an alpha mask to control blur visibility.
If a user asks for blur that fades out, do not ship a fake version with only a dark gradient over a uniform blur.
Implementation Steps
- Determine fade direction from user request (common: bottom -> top).
- Create a gradient mask with opaque alpha at the strong-blur edge and transparent alpha at the fade edge.
- Apply the mask to the blur layer itself.
- Add an optional low-opacity tint gradient only for text contrast.
- Verify the fade edge has no residual blur.
Platform References
- Expo / React Native:
./references/expo.md - Next.js / Web:
./references/nextjs.md
Visual Acceptance Checklist
- Blur is strongest at the requested edge.
- Blur smoothly decays toward the opposite edge.
- Fade edge is visually clear (no haze band).
- Text remains legible without crushing image detail.