Skip to content

Instantly share code, notes, and snippets.

@yairEO
Created August 23, 2023 20:57
Show Gist options
  • Save yairEO/39f178877e3278b7169edc238112745d to your computer and use it in GitHub Desktop.
Save yairEO/39f178877e3278b7169edc238112745d to your computer and use it in GitHub Desktop.
Hide everything inside a DOM node:
body {
content: linear-gradient(transparent, transparent);
}
@yairEO
Copy link
Author

yairEO commented Aug 23, 2023

This is different from display: none and from opacity: 0 or visibility: hidden.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment