Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (() => {
- const element = document.createElement("div");
- element.classList.add("a-shadow");
- element.classList.add("ar-box");
- document.body.appendChild(element);
- const style = document.createElement("style");
- const css = `
- .ar-box {
- position: absolute;
- background: transparent;
- width: 100%;
- height: 100%;
- pointer-events: none;
- }
- .a-shadow {
- box-shadow: inset 0 0 200px black;
- pointer-events: none;
- }
- `;
- style.appendChild(document.createTextNode(css));
- document.head.appendChild(style);
- })();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement