Okay
  Public Ticket #4101437
Menu CTA effect
Open

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

  •  304
    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,