@mihalymarcell86
Posted
Hi @MURRAY122,
I think, the most elegant solution for responsive images is using the <picture>
element.
Check out this guide on MDN about responsive images, it goes into detail about all the use cases.
I think, your solution of the hover effect is perfectly fine. The alpha channel is responsible for transparency, so adjusting that would only make the background behind the button more visible. However, you might be interested in CSS filter functions for applying all kinds of cool effects.
Hope you will find these useful. Keep up the good work!
@MURRAY122
Posted
@mihalymarcell86 I took your advice on using picture. It worked well. Ideally would be good to have had the button text stay true white while using the filter function but still a nice result. Thanks for taking the time to give feedback.
@mihalymarcell86
Posted
@MURRAY122 I'm glad I could help.