Okay
  Public Ticket #4101437
Menu CTA effect
Closed

Comments

  •  1
    thomasaulner started the conversation

    Hello,

    I've integrated a CTA into my menu and I'd like it to have the same shape and the same hover animation (smooth transition from gradient to solid blue) as my CTA on my hero page.

    Thank you in advance for your feedback.

    All the best,

    Thomas

  •  339
    Noah replied

    Hi Thomas,

    Thank you for getting back to us.

    You will need to use a custom CSS script to match the preferred styling.

    Kindly copy and paste the code below to Salient > General Settings > CSS/Script Related > Custom CSS Code:

    #header-outer #top nav ul .cta-gradient a::before {
        position: relative;
        overflow: hidden;
        -webkit-backface-visibility: hidden;
        z-index: 1;
        border-radius: 50px !important;
        padding: 15px 25px !important;
        transition: all 0.3s ease;
        background: linear-gradient(135deg, #2365a4 0%, #6fb9d5 100%);
        color: #fff !important;
        display: block; 
        width: 100%;    
        text-align: center;
        box-sizing: border-box;
    }
    
    #header-outer #top nav ul .cta-gradient a:hover,
    #header-outer #top nav ul .cta-gradient a:focus {
        opacity: 1;
    }

    You may adjust the gradient to suit you better.

    Try it out and let us know how it goes.

    Thanks,

    Salient Theme Support

  •  1
    thomasaulner replied

    Hello and thank you for your quick feedback. I would like to have the gradient on the base button but only one colour on the hover. Could you tell me what CSS code to add to the first button to get this effect?

    Thanks again,

  •  9,366
    Tahir replied

    Hey Again,

    Add this into the Custom CSS box in your Salient Theme Options panel (We write all Custom CSS in the Live Browser to ensure accuracy. If you cannot see any changes, make sure there is no red cross in the Custom CSS Box as any syntax error would cause all CSS under that line of code to not show up on the Frontend):

    
    #header-outer[data-header-button_style=default] #top nav>ul>li[class*=button_solid_color]>a:hover:before, #header-outer[data-header-button_style=default].transparent #top nav>ul>li[class*=button_solid_color]>a:hover:before {
        background: #2365a4 !important;
    }

    Thanks


     Salient Support Team