jquery - Slide Up Footer OnHover and OnClick? -


i looking modify these 2 slideup footer examples work on mobile devices. how add onclick open , onclick close these on mobile , still have onhover work desktop use?

the close , open onclick need active on "footer button" text or set of 2 images (1 footer button open, , 1 footer button close) added later.

http://jsfiddle.net/aqmhb

$(".footer").hover(function () { $(".slide").slidetoggle("fast"); }); 

http://jsfiddle.net/a88m6

$(".footer").hover(function () { $(this).animate({height: 250}); }, function(){ $(this).animate({height: 25}); }); 

you can user agent determine if being seen on mobile or desktop, , handle each independently accordingly. check user agent is, bind events how handled.


Comments

Popular posts from this blog

java - Could not locate OpenAL library -

c++ - Delete matches in OpenCV (Keypoints and descriptors) -

sorting - opencl Bitonic sort with 64 bits keys -