Edit: I was in a rush to catch the bus yesterday, so I couldn't provide more info. I tried to reproduce the problem I had yesterday but couldn't. Sorry!
The challenge requires a JS object to assign the opacity however, just as with the previous video complaint I had, the example provided in the video is NOT what is required to complete the challenge. Specifically, it shows both the attribute and the value in quotes in the video, but the challenge does not want them in quotes - it wants them in curly braces. What gives?
moderator: Yeah, thanks for the edit. I can't see an issue, but did quickly double-check
- it in (at least 1 example) in the slides is in curly braces, as animate can take a JS object, which is is doing in this case.
- the quotes are for the values in the curly braces
- the example requires the rule to also be in quotes, but as the value is a number (an opacity of 1), you don't need to quote the number. That follows CSS. Quoting works, it seems, though. Didn't double-check further, as it all seems to make sense, and works ok.