Source

Visibilitas

Ngontrol visibilitas, tanpa ngowahi tampilan, unsur kanthi utilitas visibilitas.

Setel visibilityunsur karo utilitas visibilitas kita. Kelas utilitas iki ora ngowahi displaynilai lan ora mengaruhi tata letak - .invisibleunsur isih njupuk spasi ing kaca. Konten bakal didhelikake kanthi visual lan kanggo pangguna teknologi / pembaca layar bantuan.

Aplikasi .visibleutawa .invisibleyen perlu.

<div class="visible">...</div>
<div class="invisible">...</div>
// Class
.visible {
  visibility: visible !important;
}
.invisible {
  visibility: hidden !important;
}

// Usage as a mixin
// Warning: The `invisible()` mixin has been deprecated as of v4.3.0. It will be removed entirely in v5.
.element {
  @include invisible(visible);
}
.element {
  @include invisible(hidden);
}