hidden-element

This is the coupled pair of mixins allows to manipulate properties that affects the element visibility.

hidden-element

Visually hides the element. It still present in the document flow.

Arguments

NameTypeDefaultDescription
$z-index?numbernullThe value of z-index property.

Example

@use 'more-sass' as more;

.element-one {
    @include more.hidden-element;
}

.element-two {
    @include more.hidden-element(10);
}
.element-one {
    visibility: hidden;
    opacity: 0;
}

.element-two {
    z-index: 10;
    visibility: hidden;
    opacity: 0;
}

hidden-element-active

Shows the hidden element. Resets the hidden-element mixin usage.

Arguments

NameTypeDefaultDescription
$z-index?numbernullThe value of z-index property.

Example

@use 'more-sass' as more;

.element {
    @include more.hidden-element-active;
}
.element {
    visibility: visible;
    opacity: 1;
}
Edit this page on GitHub Updated at Mon, Jan 30, 2023