Site logo

[Resolved] Button animation

Home Forums Support [Resolved] Button animation

Home Forums Support Button animation

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #2208607
    iamarghya

    On that website page, on 5th no. container there is a button with icon animation can u tell me how can I copy those settings?

    #2208629
    Fernando
    Customer Support

    Hi there,

    The icon moves through transform: translateX(8px); code on hover.

    Then, this code transition: all .3s ease-in-out; defines its transition.

    Hope this clarifies. 🙂

    #2208675
    iamarghya

    Where to put that? can u get me full CSS for one button from my website

    #2208678
    iamarghya

    I can move the icon but I want to move the icon when the whole button is hovered

    #2208685
    David
    Staff
    Customer Support

    Hi there,

    can you share a link to the page on your website where we can see the button with the icon ?

    #2208688
    iamarghya

    Oh sorry, I forgot that I didn’t share my link.😓

    #2208698
    David
    Staff
    Customer Support

    So you have this CSS:

    .gb-button-wrapper .gb-button .gb-icon:hover {
        transform: translateX(8px);
        transition: all .3s ease-in-out;
    }

    You need to move the :hover pseudo state to the button like so:

    .gb-button-wrapper .gb-button:hover .gb-icon {
        transform: translateX(8px);
        transition: all .3s ease-in-out;
    }
    #2208704
    iamarghya

    Perfectly worked Thanks.

    #2208711
    David
    Staff
    Customer Support

    Glad to hear that

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