• Resolved aflorarte

    (@aflorarte)


    Hello everyone and Happy New Year!!

    I am testing the Digital Agency template and I want to animate some parts of the Main Menu, for example, the “Get a Quote” button to blink or flash.

    If I paste the code in Elementor html widget in a given page, for example, in HOME, the animation works fine . You can see this in HOME in allmydemos.net.

    However, if I paste exactly the same code in the Customizer it will not work in any page, not even in the HOME.

    I have tried two different animation libraries , one for the button,
    and another one for the logo, and while both of them work fine from the html tag, none of them will work when placed in the Customizr. (Of course, within the Customizer/Additional CSS, I have removed the style tags: <style></style>)

    I don´t think this is a matter of misswording the class because, as I say,
    placing the code and the class within the Elementor html widget all animations do work. Of course, within the Customizer/Additional CSS, I have removed the style tags: <style></style> The codes I am using are the following:

    <style>
        .ast-builder-button-size- {
    	-webkit-animation: blink-1 0.6s infinite both;
    	        animation: blink-1 0.6s infinite both;
    }}
    /* ----------------------------------------------
     * Generated by Animista on 2022-12-31 12:35:30
     * Licensed under FreeBSD License.
     * See http://animista.net/license for more info. 
     * w: http://animista.net, t: @cssanimista
     * ---------------------------------------------- */
    
    /**
     * ----------------------------------------
     * animation blink-1
     * ----------------------------------------
     */
    @-webkit-keyframes blink-1 {
      0%,
      50%,
      100% {
        opacity: 1;
      }
      25%,
      75% {
        opacity: 0;
      }
    }
    @keyframes blink-1 {
      0%,
      50%,
      100% {
        opacity: 1;
      }
      25%,
      75% {
        opacity: 0;
      }
    }
    .site-branding {
    	-webkit-animation: blink-1 0.6s infinite both;
    	        animation: blink-1 0.6s infinite both;
    }}
    /* ----------------------------------------------
     * Generated by Animista on 2022-12-31 12:35:30
     * Licensed under FreeBSD License.
     * See http://animista.net/license for more info. 
     * w: http://animista.net, t: @cssanimista
     * ---------------------------------------------- */
    
    /**
     * ----------------------------------------
     * animation blink-1
     * ----------------------------------------
     */
    @-webkit-keyframes blink-1 {
      0%,
      50%,
      100% {
        opacity: 1;
      }
      25%,
      75% {
        opacity: 0;
      }
    }
    @keyframes blink-1 {
      0%,
      50%,
      100% {
        opacity: 1;
      }
      25%,
      75% {
        opacity: 0;
      }
    
    </style>

    Also, If I want to animate only the CONTACT tab in the menu, the whole menu gets animated, as the class I could find is “a.menu-link” and this affects the rest of the menu tabs as you can see in Contact – allmydemos.net – Again, this code does not work when placed in the Customizer; it is placed with the html widget of”CONTACT” the page. Could you help me identifying the different classes of this main menu, please?

    Please let me know what I´m doing wrong.

    Thank you very much in advance, and Happy New Year!!

    Liliana

    • This topic was modified 3 years, 5 months ago by aflorarte.
    • This topic was modified 3 years, 5 months ago by aflorarte.
    • This topic was modified 3 years, 5 months ago by aflorarte.

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Support Herman Asrori (BSF)

    (@bsfherman)

    Hi @aflorarte,

    Why don’t you give the Contact menu its own custom Class? By giving a Menu its own custom Class, you will be able to target it easily. Refer to this screenshot, please. Just in case you are not aware, this is a native WordPress feature.

    Let us know if you need more help, otherwise please mark the topic as Resolved.

    Kind regards,
    Herman 😊

    Thread Starter aflorarte

    (@aflorarte)

    Hello, Herman  and thank you so much for the tip about giving Contact a new class

    However, I am still experimenting the problem which is that if I paste the code in html widget in a given page with its own new class, the
    animation does work, BUT , if I paste the code in Additional CSS it will still not work.

    As things are set, it seems I will be forced to paste the code in the html widget of every page in the Menu and this is exactly what I´m trying to avoid.

    I hope you can help me find a solution to this

    Again, thank you so much!!

    Liliana

    • This reply was modified 3 years, 5 months ago by aflorarte.
    Thread Starter aflorarte

    (@aflorarte)

    Sorry as I forgot to mention that after giving it some tries , I could insert new classes in different blocks, BUT I couldn´t find my way to insert a new class in the menu, in the header. Neither could I give the “Get A Quote” button a new class. That is why I´m asking .

    Sorry for the confusion but the problem persists

    Thank you

    Plugin Support Herman Asrori (BSF)

    (@bsfherman)

    Hi @aflorarte,

    This is a video I captured to show you that your custom CSS above is working on my dev site, when I added it to the Customizer. It is also working for the Menu, when I added a custom Class to that Menu item.

    Hope it helps!
    Herman 🙂

    Thread Starter aflorarte

    (@aflorarte)

    Hi, @bsfherman ,

    Thank you SO MUCH! for taking the time in creating the explainer video. I appreciate this very much and will try to follow the video

    Kind regards!

    Lilialna

    Plugin Support Herman Asrori (BSF)

    (@bsfherman)

    You’re most welcome, Lilialna.

    I am marking this thread as Resolved. Feel free to response to this thread if you still need more help.

    Kind regards,
    Herman 🙂

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Animations don´t work in template’ is closed to new replies.