Button doesn't fade in or out although code is correct


#1

3/3 Get yourself in

pass mouse over button and colour doesn't change
Oops, try again. It looks like you didn't set your div's opacity to 0.5. Check the example in the instructions if you need help!

$(document).ready(function(){
$('div').mouseenter(function() {
$('div').fadeTo('fast', 1);

});  

$('div').mouseleave(function(){
$('div').fadeTo('fast',0.50);
});
  
});


#2

you added a mouseleave event, this will set the o-capicity back to 0.5, while it should stay at 1 after entering with the mouse


#3

But the button doesn't fade in or out


#4

not when hovering? Can i also see your html code?


#5

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.