Problem: Custom (themeable) shape masks
Saola Animate version: 2.7.1
OS: Windows 10
I’m trying to create a simple SVG animation on hover, however, I need to ‘hide’ or mask certain parts of the animation. I figured out that I can do it by using a hider SVG and it’s working well. However, the website where I’m going to finally use it supports light/dark theme and so, I can’t hardcode just white SVG in the animation as when the user switches to dark theme, the ‘hack’ would be revealed. So, I’m looking for possible suggestions in achieving the desired results.
I think I can probably do it using another SVG with the required dark colour, but, how do I swap the images on theme change? I’m going to use it here: https://hrishikeshk.netlify.app/index.html. As you can see, I’m using simple CSS variables there and add a class to
I’m open to any other ideas.
Here’s my file: Themeable-Masking.saolapack (4.0 KB). The animation triggers on hover. Also, this is just an example, but, I’m going to be adding a few more icons in a similar manner. So, I’d need to manipulate them all in one go.