Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #770647

    Hello,

    I would like to animate icons like on WEBSITE PAGE 1 (in private content) in my WEBSITE PAGE 2.

    Which code is supposed to be used to apply animation to the fontello icon only ? I tried to use .av-icon-char but it applies the effect to the entire icon (with the border to) and this is not what I’m looking for.

    Thanks !

    #770661

    Hey fcp!

    I loaded the site and I can see the animation.
    Have you managed finish it? ( or you want something else rather than just the entrance? )

    Regards,
    Basilis

    #770690

    Hi Basilis !

    I’m sorry but I don’t really understand what you mean…

    What I want is reproducing the animation from WEBSITE PAGE 1 on icons (icon is moving from left to center on hover).

    Thanks !

    #772264

    Hi,

    Please add this code in the Quick CSS field.

    .avia_transform .av_font_icon:hover > .av-icon-char:before {
        position: relative;
        left: -100px;
        -webkit-animation: ava_left_to_right 0.3s forwards;
        animation: ava_left_to_right 0.3s forwards;
    }
    
    @-webkit-keyframes ava_left_to_right {
        100% { left: 0; }
    }
    
    @keyframes ava_left_to_right {
        100% { left: 0; }
    }
    

    Best regards,
    Ismael

    #772575

    Hi Ismael,

    I customized a bit your code and it’s closer to what I want with this :

    .avia_transform .av_font_icon:hover > .av-icon-char:before {
    color: transparent;
    position: relative;
    left: -100px;
    -webkit-animation: ava_left_to_right 0.3s forwards;
    animation: ava_left_to_right 0.3s forwards;
    }

    @-webkit-keyframes ava_left_to_right {
    100% { left: 0; color: #fff;}
    }

    @keyframes ava_left_to_right {
    100% { left: 0; color: #fff;}
    }

    But I have another question now : I would like to enable the animation on hover for the entire column…
    The problem is that I already use the following code in my functions.php for another column from another page :

    function add_custom_div(){
    ?>
    <script>
    jQuery(“.colonne-sous-menu”).click(function(){
    window.location = jQuery(this).find(“a:first”).attr(“href”);
    return false;
    });
    </script>
    <?php
    }
    add_action(‘wp_footer’, ‘add_custom_div’);

    And when I duplicate this code and I put another css class in it, it makes an error and I can’t access to my back office anymore…
    I tried to add the second css class next to the first (separated with a coma), but it doesn’t work neither.

    Can you help ?

    Thanks a lot !

    #773641

    Hi!

    Do you want every icons to animate when the mouse hovers the column element?

    .avia_transform .icone-page-accueil:hover .av_font_icon > .av-icon-char:before {
    color: transparent;
    position: relative;
    left: -100px;
    -webkit-animation: ava_left_to_right 0.3s forwards;
    animation: ava_left_to_right 0.3s forwards;
    }

    Best regards,
    Ismael

    #774033

    Hi Ismael !

    No, this is not what I want.

    I explain :
    Each column is composed by 1 icon, 1 empty space and 1 title (text).
    Here are two images to show you what i’m talking about :

    http://imgur.com/a/WyWGI (front office)
    http://imgur.com/a/fwWKz (back office)

    So, like I told you before, I would like to make the entire column (the red area in the first image) active on hover.

    The problem is that I already use the following code in my functions.php for another column from another page :

    function add_custom_div(){
    ?>
    <script>
    jQuery(“.colonne-sous-menu”).click(function(){
    window.location = jQuery(this).find(“a:first”).attr(“href”);
    return false;
    });
    </script>
    <?php
    }
    add_action(‘wp_footer’, ‘add_custom_div’);

    And when I duplicate this code and I put another css class in it, it makes an error and I can’t access to my back office anymore…
    I tried to add the second css class next to the first (separated with a coma), but it doesn’t work neither.

    Can you help ?

    Thanks a lot !

    #774822

    Hi!

    Please replace the css code with the following:

    .avia_transform .icone-page-accueil:hover .av-icon-char {
        border-color: #e6e6e6!important;
        background-color: #b02b2c!important;
        color: #fff!important;
        box-shadow: 0 0 0 4px #e6e6e6;
        -webkit-transition: all 0.15s ease-in;
        -moz-transform: all 0.15s ease-in;
        transition: all 0.15s ease-in;
    }
    
    .avia_transform .icone-page-accueil:hover .av_font_icon > .av-icon-char:before {
        color: transparent;
        position: relative;
        left: -100px;
        -webkit-animation: ava_left_to_right 0.3s forwards;
        animation: ava_left_to_right 0.3s forwards;
    }

    Cheers!
    Ismael

    #777598

    Hi Ismael,

    It works perfectly ! The topic can be closed.

    Thanks ! :-)

    #777702

    Hi,

    Let us if you have some question in the future :)

    Best regards,
    John Torvik

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