I have used CSS sticky inserted to a custom code element on a page (so I can see the effect in the designer). When I apply the class to call the custom code to more than one element it causes very glitchy behaviour, not only with the elements but parts of the webflow interface disappear and it freezes!
If I publish the site the glitchy behaviour does not happen, only in the preview mode in the designer.
As a test I tried duplicating the custom code element, gave it a different class name .sticky-2 and applied it to the second sticky element, the glitches seem to have stopped now. I know I can add it to the header on the page but can’t see the changes in the designer.
Is this a known thing that you can’t apply custom code embedded in a custom code element on the page to more than one page element?