Lesson 14 of 50
cssVisibility & Opacity
5 mins
Course progress28%
What you'll learn
Keep these ideas in mind as you work through the lesson.
Lesson 14 of 50
css5 mins
Keep these ideas in mind as you work through the lesson.
Two ways to hide elements:
visibility:hidden – element is invisible but still occupies space and is read by screen readers.opacity:0 – element is fully transparent but still participates in layout and events.Both are useful for animation start‑states.
.hidden { opacity:0; transition:opacity .3s ease; }
.visible { opacity:1; }