Can javascript make botton whichi is escaping when mosue overed? | Sololearn: Learn to code for FREE!

0

Can javascript make botton whichi is escaping when mosue overed?

Can javascript make botton whichi is escaping when mosue overed?

6/14/2017 1:58:45 PM

やなぎりゅう

2 Answers

New Answer

+13

Yeah! jQuery does : $(document).ready(function(){ $(".btn").click(function(){ $(".btn").fadeOut() }); });

+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; }