CSS display:none and visibility:hidden – What's the Difference?
Benjamin De Cock on X: "Friendly reminder: switching from display none to block doesn't prevent you from having a CSS transition—just wait for the next repaint! https://t.co/Ep67GNc3ET" / X
Animating from "display: block" to "display: none"
javascript - Does 'display:none' improve or worsen performance? - Stack Overflow