Hey.
I want to animate clip-path property so the divider line goes from one corner to another. For that purpose I have two identical sections: one is black, another one is white, they are positioned absolute in one common container. The difference is that the black one has clip-path that makes visible only a half of it and at the same time it covers the white section that is located just underneath.
Below I made copies with the same section but another clip-path value, to illustrate how should it go while I'm scrolling. Also I want to make it smooth so probably "scrab" is needed here. All I did wasn't right, cause I didn't get the desired result.
My real task isn't just black&white but colored section, so I see clip-path as the only one solution here.
I would appreciate any help here.