This is a solution to the Stats preview card component challenge on Frontend Mentor. Frontend Mentor challenges help you improve your coding skills by building realistic projects.
Users should be able to:
- View the optimal layout depending on their device's screen size
- Live Site URL: migueweb.github.io/stats-preview-card-component
- Semantic HTML5 markup
- CSS custom properties
- Flexbox
- Mobile-first workflow
This property describes how the element blends with the background element.
<img class="card-header-mobile" src="./images/image-header-mobile.jpg" alt="people working">
<div class="card-header-filter"></div>
.card-header-mobile {
display: block;
width: 100%;
height: 100%;
position: relative;
mix-blend-mode: multiply;
opacity: 0.75;
z-index: 2;
}
.card-header-filter {
background-color: var(--soft-violet);
position: absolute;
height: 100%;
width: 100%;
top: 0;
z-index: 1;
}
- Mix blen mode - This helped me learn how it works mix-blend-mode.
Miguel Amador