jquery - On Mouseover need div to slide-up -
i'm trying have div in top barely visible (image #1), on mouseover slides have copy in (image #2). on mouseout / leave div returns #1 position.
any appreciated
everything work fine, 2 little change , on go!
first when use stop, put write : stop(true);
div stop flickering.
then, able see little red line, have play height of .default
note if change in css, have change in animate()
too!
i set 15px testing , it's value, see : http://jsfiddle.net/daj9s/14/
note way doing animation not responsive. in other word, if text have 2 lines, not work well. code totally acceptable "dont along" jquery. pointing out problem may face later!
edit: ringo said in answer, use .hover()
instead of .mouseover()
, mouseout()
!
Comments
Post a Comment