Home > Blockchain >  CSS Drop Shadow Breaks on Mobile | Next.js
CSS Drop Shadow Breaks on Mobile | Next.js

Time:02-10

Edit: I found out that the issue is exclusive to iPhones. I tested with an android device and it worked fine when I tried viewing the page on two different iPhones it broke on both.

This issue is mobile related, since when I shrink my browser window to the size of a mobile screen, everything looks fine. However, when I view the site on my actual mobile device, the drop shadow "breaks" at seemingly random places. If I zoom in and out these breaks will change their locations.

The current effect being used is

filter: drop-shadow(20px 10px 4px #707070);

enter image description here

CodePudding user response:

After further research into this, I found that the issue was not specific to my website. If you go onto the enter image description here

As suggested in a comment, changing to a simple box-shadow fixed the issue, although the edges are more hard-lined and slightly less faded (using the same parameters). It's not enough to break this specific project and I know there are CSS features available that enhance this, so all is good!

  • Related