css gradient not rendering well on mobile phone

178 views Asked by At

I created a site with a gradient in the hero-section by using 3 stacked divs with something like

background: linear-gradient( to right bottom, purple, blue);

and I'm seeing a strange behavior in mobile. It should look like this:

The hero section as it is supposed to look

But it looks like this instead:

The hero section as it actually looks

You can reproduce it in this codepen: https://codepen.io/marnau/pen/GRxjBzM. When I open it on desktop I can see the gradient. On mobile I can't.

This site is where I'm having the problem: https://acupunt.cat on mobile. The problem occurs with both linear-gradient and radial-gradient.

0

There are 0 answers