xxxxxxxxxx
1
<header>
2
3
<section>
4
<div class="bg-image h-100" style="background-image: url(https://mdbootstrap.com/img/Photos/new-templates/glassmorphism-article/img5.jpg); ">
5
<div class="mask d-flex align-items-center h-100">
6
<div class="container">
7
<div class="row justify-content-center text-center">
8
<div class="col-lg-8 col-xl-6">
9
<div class="card mask-custom py-5 px-4 text-white" data-mdb-toggle="animation" data-mdb-animation-start="onLoad" data-mdb-animation="fade-in" data-mdb-animation-duration="1000" data-mdb-animation-delay="300">
10
<div class="card-body">
11
<h2>This is the glassmorphism effect</h2>
12
<p class="lead font-weight-normal my-4">You can use it instead of the standard white card background in the intro of your landing page or portfolio</p>
13
<button type="button" class="btn btn-primary btn-rounded btn-lg">Learn more</button>
14
</div>
15
</div>
16
</div>
17
</div>
18
</div>
19
</div>
20
</div>
21
</section>
22
23
</header>
xxxxxxxxxx
1
html,
2
body,
3
header,
4
header section {
5
height: 100%;
6
}
7
8
.mask-custom {
9
backdrop-filter: blur(15px);
10
background-color: rgba(255,255,255,.2);
11
border-radius: 3em;
12
border: 2px solid rgba(255,255,255,.1);
13
background-clip: padding-box;
14
box-shadow: 10px 10px 10px rgba(46, 54, 68, 0.03);
15
}
1
1
Console errors: 0