I have a scenario where I need to dynamically change values in an animation. The line of code that needs modification is:
clip-path: polygon(var(clip1) 0, 100% 1%, 100% 100%, 50% 100%);
let root = document.documentElement;
root.style.setProperty('clip1', e.clientY + "%");
I tried the above approach but it seems like the values are not being set correctly due to nested variables. Any suggestions on how to tackle this issue?