@kaamiik
Posted
Congratulations. You did very well in this challenge. I also did this challenge for the second time. The first time, I made many mistakes in writing HTML code, but it got better this time. I looked at your code, it was very good. I noticed that you used the visibility: hidden
property in one section. I think the reason was that you wanted to use the transition
prop. Is that correct? Or did you want to avoid using the display
property twice?
@kaamiik That's correct! You can't use transition
on the display
property. I added visibility: hidden;
to remove the element from the DOM. opacity: 0;
technically makes it completely hidden, so I'm unsure if visibility: hidden;
is necessary.
@kaamiik
Posted
If you remove the visibility
property and just use opacity
, the popup will still be hidden initially because of opacity: 0
. However, even when it’s hidden, it will still be able to receive focus and be interacted with, because it’s technically still “visible” in terms of document flow. So I think both of them is necessary @moadavou
Marked as helpful