Can javascript make botton whichi is escaping when mosue overed? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Can javascript make botton whichi is escaping when mosue overed?

Can javascript make botton whichi is escaping when mosue overed?

14th Jun 2017, 1:58 PM
やăȘぎりゅう
やăȘぎりゅう - avatar
2 Answers
+ 13
Yeah! jQuery does : $(document).ready(function(){ $(".btn").click(function(){ $(".btn").fadeOut() }); });
14th Jun 2017, 4:11 PM
Dev
Dev - avatar
+ 3
And what JQuery can do, JS can also ^^ However, you can also handle it with only pure CSS :P <footer>Some content</footer> footer { position:fixed; bottom:0; left:0; width:100vw; background:silver; height:2em; padding:1ex; transition:bottom 1s; } footer:hover { bottom:-3em; }
14th Jun 2017, 5:46 PM
visph
visph - avatar