using pseudo :after-element to create a triangle shape color overlay

using pseudo :after-element to create a triangle shape color overlay

I am trying to create a shape color overlay with pure CSS like the&nbsp;<a href="https://scontent.faar2-1.fna.fbcdn.net/v/t1.0-9/50748230_10156519753374213_2195254773937078272_n.jpg?_nc_cat=102&amp;_nc_ht=scontent.faar2-1.fna&amp;oh=b240619bd8f3826c3c3e844005ff9c51&amp;oe=5CFA7EC9" target="_blank">image</a>

I am trying to create a shape color overlay with pure CSS like the image

However, I can't quite figure out how to create the triangle. I would assume I have to use CSS pseudo :after element. However, none of the solutions I have tried so far seems to work and is not responsive at all.

How do I recreate a shape color overlay as shown in the image? Thanks in advance!

My code:

    html, body {
      width: 100%;
      height: 100%;
    }

.bg-img {
  width: 100%;
  height: 100%;
  background-blend-mode: multiply;
  background-color: initial;
  background-image: url("http://unsplash.it/1200x800"), linear-gradient(90deg,rgba(43,135,218,0) 50%,rgba(41,196,169,0.61) 50%);
  background-size: cover;
}


css

Bootstrap 5 Complete Course with Examples

Bootstrap 5 Tutorial - Bootstrap 5 Crash Course for Beginners

Nest.JS Tutorial for Beginners

Hello Vue 3: A First Look at Vue 3 and the Composition API

Building a simple Applications with Vue 3

Deno Crash Course: Explore Deno and Create a full REST API with Deno

How to Build a Real-time Chat App with Deno and WebSockets

Convert HTML to Markdown Online

HTML entity encoder decoder Online

Hire CSS Developer

Want to develop a website or re-design using CSS Development? We build a website and we implemented CSS successfully if you are planning to **[Hire CSS Developer](https://hourlydeveloper.io/hire-dedicated-css-developer/ "Hire CSS Developer")**...

7 Best Vue CSS Component for Your App

Vue CSS frameworks are great for many reasons; code is more universally understood, web applications are easier to maintain, and prototyping becomes less of an extra step.

Learn to use variables in CSS (CSS Tricks)

whats the variable in CSS, how to declare use them. Whats the benefit of variables in CSS. Lets learn all this. #Variables #CSS #HTML #CssVariables #ITArticles

CSS Flex Box: A Flexible Way To Layout

Every element of HTML is a rectangular box. Every Box has a defined height and width. This way you can increase or decrease its size.

Creative CSS Button Effect using CSS Keyframe - CSS Tricks

In this video, you'll look at Creative CSS Button Effect using CSS Keyframe - CSS Tricks