4 ms·
You can flip images horizontally via CSS: img { transform: scaleX(-1); } Here's a javascript bookmarklet that will do this for all images on th
by pimlottc 1y ago
You can flip images horizontally via CSS:
img {
transform: scaleX(-1);
}
Here's a javascript bookmarklet that will do this for all images on the page:
javascript:(()%3D%3E%7B%5B...document.querySelectorAll(%22img%22)%5D.forEach((e%3D%3E%7Be.style.transform%3D%22scaleX(-1)%22%7D))%3B%7D)()%3B
- kazinator 1y agoThat is very clever, and useful, thank you. But it doesn't achieve the effect we are after at present. When we reflect the stereogram left to right, the orientation of the parallax recorded in the images also flips and so the net effect is zero: if the original stereo pair is a stare-into-the distance stereogram, the reflected stereogram is also.
- pimlottc 1y agoAh, good point. I wonder if it's possible to achieve the left/right swap in CSS? Alas I am not a CSS guru.