Skip to content

Instantly share code, notes, and snippets.

@TudorSfatosu
Last active May 2, 2023 09:43
Show Gist options
  • Save TudorSfatosu/3fd082588d5ab81786e65f0c3ce6e28f to your computer and use it in GitHub Desktop.
Save TudorSfatosu/3fd082588d5ab81786e65f0c3ce6e28f to your computer and use it in GitHub Desktop.
Creating mutliple layers blending mode #html
<!DOCTYPE html>
<html>
<head>
<title>Background Image Example</title>
<style>
.image-container {
background-image: url(triangle.png), linear-gradient(to bottom, #422039b8, #422039b8), url(bg.jpg);
background-blend-mode: soft-light, multiply, normal;
background-size: contain, auto, cover;
background-repeat: no-repeat, no-repeat, no-repeat;
background-position: 91% 0 , 0 0, 0 0;
height: 70vh;
width: 100%;
}
</style>
</head>
<body>
<div class="image-container">
<!-- Content goes here -->
</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment