Skip to content

Instantly share code, notes, and snippets.

@basedwon
Last active November 30, 2021 11:20
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
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