jQuery FadeTo() bg on rollover, IMG animate().width height
I have been reading StackOverflow for a while and now I have a question I cannot find an answer to.
i am trying to fade a background and increase on img size on rollover.
I have tried animate() and fadeTo(), however, the entire div fades. Do I need to absolute position my images over the div and not within it? img o开发者_C百科r img?
Is that the only way to get items within a div to not fade along with the background?
Thanks! Jason
Yes, you need to use absolute positioning, if you fade the div that is wrapping the image then everything in the div will fade.
精彩评论