I am putting this in the head of each page. It doesn’t work on mobile and adding an interaction to the the text inside the clipped class break the page. Beyond my current skill set. Back to SVG!
dont mind about the code in red in the custom code box, means nothing, it’s buggy
don’t apply an interaction on an element that has clipping or masking on it. In fact don’t do nothing with an element that has masking or clipping on it. Instead, nest this element inside of another div and put your interactions on that div. Also keep in mind that masking or clipping makes an element and all its child elements rendered on a plane, so there is no 3D possible within a clipping group for example.
Vincent. As a matter of interest, I have added an animation to the embed element as I assume that I can not use native ix2 to animate the background because it is “clipped” to the text?? refer to original shared project.
The embed element is just a DIV.
Never put any CSS property or interaction on Clipped elements, or elements effected by custom code. Alway wrap them in a div an give this div the interactions etc…
And for clarity, don’t do it on the Embed elemeent too. wrap it in an extra div and affect that div.
Nesting is not bad, at all. Nest and nest and nest, don’t put too much properties on the same level. Yu can have one fiv for outer bounds, one for layout, one for dimension, one for interaction, one for content, one for content layout, etc etc etc… a simple card could be one div but if you add clipping and interaction, it’s not bad to use a series of nested div. Will be easier to handle and bug less, and better for cross browsers compatibility.