Vue Bootstrap masks

Bootstrap masks alter the visibility of an element by either partially or fully hiding it. Masks are used to make content more visible in the picture.


Patterns

smaple image

no mask

Image of ballons flying over canyons with mask pattern one.

pattern = "1"

smaple image

pattern = "2"

Image of ballons flying over canyons with mask pattern one.

pattern = "3"

smaple image

pattern = "4"

Image of ballons flying over canyons with mask pattern one.

pattern = "5"

smaple image

pattern = "6"

Image of ballons flying over canyons with mask pattern one.

pattern = "7"

smaple image

pattern = "8"

Image of ballons flying over canyons with mask pattern one.

pattern = "9"

Usage

Step 1: Insert the view-wrapper component.

<view-wrapper>
    . . .
</view-wrapper>

Step 2: Set a path to the image.

<view-wrapper src="https://mdbootstrap.com/img/Photos/Others/nature-sm.jpg" alt="">
    . . .
</view-wrapper>

Step 3: Add a class mdmask to cover the image with the pattern.

<view-wrapper src="https://mdbootstrap.com/img/Photos/Others/nature-sm.jpg" alt="">
    <mdmask></mdmask>
</view-wrapper>

Step 4: Choose a pattern class from the examples above.

<view-wrapper src="https://mdbootstrap.com/img/Photos/Others/nature-sm.jpg" alt="">
    <mdmask pattern="1"></mdmask>
</view-wrapper>

Step 5: If you want to add some text, you can use a class flex-center attribute to center it. Same goes for the waves effect - simply add it to mdmask.

<view-wrapper src="https://mdbootstrap.com/img/Photos/Others/nature-sm.jpg" alt="">
    <mdmask pattern="1" flex-center waves text="Pattern 1, waves"></mdmask>
</view-wrapper>

Overlays

smaple image

slight overlay

smaple image

light overlay

smaple image

strong overlay

Usage

Instruction and markup are the same like for the patterns. The only difference is you add an overlay attribute (black-strong in the example below) to the view-wrapper, not mdmask.

See the full list of the overlay colors and intensity

<view-wrapper src="https://mdbootstrap.com/img/Photos/Others/nature-sm.jpg" alt="">
    <mdmask flex-center overlay="black-strong" text="strong overlay"></mdmask>
</view-wrapper>

Overlay colors and intensity

Choose one of the classes from the list below to set a desired intensity and color of your mask.

blue-light

red-light

pink-light

purple-light

indigo-light

cyan-light

teal-light

green-light

lime-light

yellow-light

orange-light

brown-light

grey-light

bluegrey-light

black-light

stylish-light

white-light

blue-strong

red-strong

pink-strong

purple-strong

indigo-strong

cyan-strong

teal-strong

green-strong

lime-strong

yellow-strong

orange-strong

brown-strong

grey-strong

bluegrey-strong

black-strong

stylish-strong

white-strong

blue-slight

red-slight

pink-slight

purple-slight

indigo-slight

cyan-slight

teal-slight

green-slight

lime-slight

yellow-slight

orange-slight

brown-slight

grey-slight

bluegrey-slight

black-slight

stylish-slight

white-slight