Advertisement
Guest User

Untitled

a guest
Feb 19th, 2019
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. (() => {
  2. const element = document.createElement("div");
  3. element.classList.add("a-shadow");
  4. element.classList.add("ar-box");
  5. document.body.appendChild(element);
  6.  
  7. const style = document.createElement("style");
  8. const css = `
  9. .ar-box {
  10. position: absolute;
  11. background: transparent;
  12. width: 100%;
  13. height: 100%;
  14. pointer-events: none;
  15. }
  16. .a-shadow {
  17. box-shadow: inset 0 0 200px black;
  18. pointer-events: none;
  19. }
  20. `;
  21. style.appendChild(document.createTextNode(css));
  22. document.head.appendChild(style);
  23. })();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement