Skip to content

Instantly share code, notes, and snippets.

@basedwon
Last active November 30, 2021 11:20
Show Gist options
  • Save basedwon/5d07c5b17ea0f2839ff7afe3de93afe3 to your computer and use it in GitHub Desktop.
Save basedwon/5d07c5b17ea0f2839ff7afe3de93afe3 to your computer and use it in GitHub Desktop.
Dark PDF
const cover = document.createElement("div")
const css = `
position: fixed;
pointer-events: none;
top: 56px;
left: 18.1%;
width: 63.7vw;
height: 100vh;
background-color: #f3f3f3;
mix-blend-mode: difference;
z-index: 1;
`
cover.setAttribute('style', css)
document.body.appendChild(cover)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment