Archived topic
Is there a way to apply Custom Attributes to a Global Style?
1 reply · Started by Gregor on December 1, 2022
We are wanting to add animations via Global Styles.
We have created Global Styles for Containers and Buttons and are using Custom Attributes to apply animations. But they do not seem to be passed on to the blocks we have created.
Attributes include:
data-sal slide-right
data-sal-easing easeInOutSine
data-sal-duration 600
data-sal-delay 0
data-sal-repeat false
The attributes work fine if we add them to the blocks individually but we wish to control this globally.
Are we missing something? Or is this not possible? Or is there an issue with the software?
Hi there,
Global Styles only save the related CSS.
Attributes are part of the HTML. And at this time there is no dynamic data options to load those.
So today, the only way to do that is to save a Reusable block. This stores the HTML including the attributes, and therefore when you update any instance of the reusable block, they will all update.