![]() |
Animate background image up?
Hi, On my site in my footer I have some social media icons that animate the background up when I hover over.
I would like to do this on my 4 main boxes: Who, work, blog, contact as you can see, I have attempted it on the first box: "Who are we?" here is my site: http://staging.graphitedigital.com/2013/dev/# Javascript Code:
jQuery('ul#sections li#who').hover(function() { |
You could always leave the simple color swap you have now for default and then use CSS3 for the browsers that like it:
transition: background-positionhttp://www.impressivewebs.com/demo-f...mated-sprites/ If you want to use jQuery like you are trying to do, you are moving the wrong thing. Code:
jQuery('ul#sections li#who').hover(function() { |
ok thanks, I have added <span></span> inside the <li> and targeted that but it's not working?!
Code:
jQuery('ul#sections li#who a span').hover(function() { |
Remove the background from the LI and give it to the SPAN.
Code:
ul#sections li#who a span {Code:
jQuery('ul#sections li#who a').hover(function() { |
yes close, thanks.
I have got to this stage before: http://staging.graphitedigital.com/2013/dev/# it's suppose to be orange underneath though?! |
can anyone help here please?
|
| All times are GMT +1. The time now is 12:25 AM. |
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.