Upon opening a bootstrap modal, the background takes on a darker shade as seen here. I am looking to apply a CSS class that mimics this shading effect to a specific element.
I prefer not to use any JavaScript for this task as it is purely about styling with no functionality involved.
I tried the solution provided in this thread, but unfortunately, it did not work for me.
Simply altering the opacity is not the desired outcome. The opacity property tends to wash out the elements, whereas the bootstrap modal adds a subtle tint to them.