From Ana Tudor’s Mastadon post. The code can be found on Codepen.
It isn’t rendering here in an HTML block very well, so you can click this link to see the full effect.
This is from Ana Tudor’s Mastadon post and the original code can be found on Codepen. The author was inspired by this Codepen post. That post required you to split your image into multiple pieces. Which is fine if you want an artistic effect like the original, seen below. But if you want to split the image up into equal parts, so you can see the entire image but have it presented as a 3D wave, Ana Tudor’s code is much better because it handles that for you.
This is the full code used at the top of the page. It is running in an HTML block so I combined all of the HTML and CSS into a single block. I did not remove any of the original author’s comments. The only thing changed was the photo that is displayed.
Something in the WordPress is preventing the image for distorting correctly, I’ll address that later. Click this link to see the code running as intended.
This site is primarily for screwing around. There is no need to contact me, but if you insist you can find me on Mastadon at https://mastodon.social/@djinnsour.