So I've been into anaglyphs for a few weeks now, and I want to implement a feature just like Stack Overflow did for April Fools 2022 (aka. Filters). I have made a button for toggling the effect, but cannot find a way to add an onClick Event to enable or disable the 3D effect. Help would be greatly appreciated with the JavaScript portion and the actual 3D feature.
I wanted to find a drag-and-drop website builder for my Raspberry Pi Apache2 webserver, and I found Webflow. I've created the pages for it, but have very little HTML experience and no JavaScript or CSS experience. Here is the code I have for the anaglpyph:
.someClass {
color:rgba(0,255,255,0.5);
text-shadow: rgba(255,0,0,0.5) -1.5px 0px 0px;
padding-left:4px;
}
If you want to take a look at the website, here is the link: Webflow View-Only Link