Site logo

[Support request] Is there a way to apply Custom Attributes to a Global Style?

Home Forums Support [Support request] Is there a way to apply Custom Attributes to a Global Style?

Home Forums Support Is there a way to apply Custom Attributes to a Global Style?

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #2446103
    Gregor

    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?

    #2446429
    David
    Staff
    Customer Support

    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.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.