0 points
Submitted by JohnHC86
almost 8 years

I am getting " It looks like you didn't set your div's opacity to 1" with no way past

I am getting the error: “ It looks like you didn’t set your div’s opacity to 1” with every combo of code possible.

I have tried in Chrome and Firefox, reset code and pasted, refreshed, tried another browser, it just does not work.

Code used: $(document).ready(function() { $(‘div’).mouseenter(function() { $(‘div’).fadeTo(‘fast’, 1); }); });

Any advice (or fix) would be gratefully received.

Answer 542dbd54631fe9b5c1000205

6 votes

Permalink

Make sure the opacity tag under stylesheet.css is 1.

points
Submitted by lukejano
over 7 years

3 comments

Marko Ćurlin over 7 years

this way I succeeded in finishing the lesson but it didn’t actaully fade

harmonyhames over 7 years

Thanks - that works as a cheat - they need to fix this page, though. Code above is correct and this whole page was crashing in Chrome. I could only get it to load in Firefox.

Matias Toro over 7 years

I had the same problem with page crashing in Chrome, quite a hassle indeed. There’s definitely a glitch with this exercise. Thanks for the tip it works when changed in the CSS ;)

Answer 541cbf4d548c353b3a000c7b

0 votes

Permalink

$(‘div’).mouseenter(function() { $(‘div’).fadeTo(‘fast’, 1); });

});

Worked.

points
Submitted by Daffadill
almost 8 years