To slightly expand on what @thesergie suggested, I would recommend creating a global class and inserting it into your custom
Since we’re trying to create smoother animation, we can also promote the div to a GPU layer (in addition to the backface-hidden trick). For example:
Once inserted into your
<head> code, you could then add the class to any element in Webflow:
Note: Be sure to use this trick sparingly, especially when targeting mobile devices. If we offload too many layers to the GPU, it might cause performance problems on devices with less VRAM. More technical details can be found here.