Skip to content

when zoomed in to at least 150%, the overlapping content disappears. this is useful for cloaking content

License

Notifications You must be signed in to change notification settings

ndirmn3/Zoom-In-Cloaker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Overlapping Content Example

This project demonstrates a simple HTML page where an overlay background with text is displayed on top of the main content. The overlay disappears when the window is zoomed in to a certain threshold, without saving the state permanently between page reloads. This is useful for creating page cloaks.

Features

  • Main content: A full-page background with centered text.
  • Overlay background: A semi-transparent background with text that overlays the main content.
  • Responsive behavior: The overlay is hidden when the window is resized below a set width (1000px in this case).

How It Works

  1. The main content is displayed on a full viewport.
  2. The overlay content appears on top of the main content initially.
  3. When the window width is resized to 1000px or below, the overlay content disappears.
  4. The overlay content remains hidden for the duration of the session but will reappear if the page is reloaded or if the window is resized back above 1000px.

About

when zoomed in to at least 150%, the overlapping content disappears. this is useful for cloaking content

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages