-
AuthorPosts
-
April 2, 2017 at 4:10 pm #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 !
April 2, 2017 at 4:45 pm #770661Hey 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,
BasilisApril 2, 2017 at 6:18 pm #770690Hi 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 !
April 5, 2017 at 7:34 am #772264Hi,
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,
IsmaelApril 5, 2017 at 2:28 pm #772575Hi 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 !
April 7, 2017 at 3:28 am #773641Hi!
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,
IsmaelApril 7, 2017 at 3:37 pm #774033Hi 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 !
April 9, 2017 at 8:51 am #774822Hi!
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!
IsmaelApril 14, 2017 at 1:05 am #777598Hi Ismael,
It works perfectly ! The topic can be closed.
Thanks ! :-)
April 14, 2017 at 8:00 am #777702Hi,
Let us if you have some question in the future :)
Best regards,
John Torvik -
AuthorPosts
- You must be logged in to reply to this topic.