You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using images with an alpha channel (e.g. transparent PNGs), the existing masking approach doesn't work quite right.
The current approach assumes that .first-overlay will cover .second. When transparent images are in use, that's not a safe assumption - .second "shows through" where it shouldn't.
Fortunately, I was able to find a workaround in which I composited my background onto the images themselves. However, for a fully responsive design, it would be better to support transparent images natively.
The text was updated successfully, but these errors were encountered:
When using images with an alpha channel (e.g. transparent PNGs), the existing masking approach doesn't work quite right.
The current approach assumes that
.first-overlay
will cover.second
. When transparent images are in use, that's not a safe assumption -.second
"shows through" where it shouldn't.Fortunately, I was able to find a workaround in which I composited my background onto the images themselves. However, for a fully responsive design, it would be better to support transparent images natively.
The text was updated successfully, but these errors were encountered: