Social Icons Hover Opacity
RichmondImage
Registered Users Posts: 65 Big grins
I put this question out here a few weeks ago and didn't get any response, but luckily I managed to figure it out on my own (well with the internet) Here is the code I used to make my social icons opaque and then switch on hover. I used them on my homepage, but not the rest of the site (icons are in footer on homepage) but it should work anywhere.
the "large" part of the code can be adjusted for whatever your icon size is set to
.sm-page-widget-social-links.sm-social-links-large .sm-fonticon { opacity:0.4; filter:alpha(opacity=40); /* For IE8 and earlier */ } .sm-page-widget-social-links.sm-social-links-large .sm-fonticon:hover { opacity:1.0; filter:alpha(opacity=100); /* For IE8 and earlier */ }
the "large" part of the code can be adjusted for whatever your icon size is set to
0
Comments
Camera - $1700, Lens - $900, Memories - Priceless | www.rhitusworld.com
-webkit-transition:color 0.2s ease-in;
-moz-transition:color 0.2s ease-in;
transition:color 0.2s ease-in;
Website: www.aaronbrownphotos.com
Facebook: www.facebook.com/aaronbrownphotography
Twitter: www.twitter.com/abrownphotos
This works perfectly.
Thanks!
Yup - that did the trick!
ease-out for the icons
ease-in for the hover using the transition:opacity.
Thanks for the nod in the right direction!
Website: www.aaronbrownphotos.com
Facebook: www.facebook.com/aaronbrownphotography
Twitter: www.twitter.com/abrownphotos
http://www.hiddentrailphotography.com/
you can change the timing on it where it says .25s but I wouldnt veer much past .2-.3, just my .02
FYI - I added a little Scale transition to enlarge the icons when you hover...here is the code I used below (note it is for the small icons...change small to medium or large for your selection):
.sm-page-widget-social-links.sm-social-links-small .sm-fonticon
{
opacity: .4;
transition: opacity .25s ease-in-out;
-moz-transition: opacity .25s ease-in-out;
-webkit-transition: opacity .25s ease-in-out;
}
.sm-page-widget-social-links.sm-social-links-small .sm-fonticon:hover
{
opacity: 1;
-webkit-transform: scale(1.6);
-moz-transform: scale(1.6);
-o-transform: scale(1.6);
transition: opacity .25s ease-in-out;
-moz-transition: opacity .25s ease-in-out;
-webkit-transition: opacity .25s ease-in-out;
}
Corporate & Editorial Photojournalism