I have heard that applying display:none
to things that are not visible is more accessible then changing opacity. However using display:none
messes up some of my css animations that are progressively layered onto the core functionality.
Is it accessible if in my css the element is hidden with opacity:0
and give the element the aria-hidden=true
role, or should the element also have display:none
?
Another factor to be considered is the aria roles are controlled by javascript (the css has a :hover
pseudo-class fallback) in this instance. So for environments without javascript the element would only be hidden with opacity:0
.