Skip to content

Instantly share code, notes, and snippets.

@miyaoka
Created February 16, 2022 07:46
Show Gist options
  • Save miyaoka/248e78eeb5c24cab6fd7c50f3daadffd to your computer and use it in GitHub Desktop.
Save miyaoka/248e78eeb5c24cab6fd7c50f3daadffd to your computer and use it in GitHub Desktop.
javascript: (function () {
const container = document.querySelector("body");
const img = container.querySelector("img");
img.style.position = 'absolute';
const l = img.cloneNode();
l.style =
"position: absolute;z-index: 1;left: 0px;bottom: 0px;width: auto;height: auto;transform: scale(0.5) translate(0,50%)";
const r = img.cloneNode();
r.style =
"position: absolute;z-index: 1;bottom: 0px;transform: scale(.5) translate(-561px,50%);mix-blend-mode: difference;width: auto;height: auto;";
container.appendChild(l);
container.appendChild(r);
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment