Link to home
Start Free TrialLog in
Avatar of Ahmed Musawir
Ahmed Musawir

asked on

Need help with performant parallax code which is pure CSS based and will work on all Mobile devices.

I've been building a React js based site which needs some parallax design. I've tried the basic CSS/SCSS based parallax the following way:

background: url(/image.jpg) fixed;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;

Open in new window


But that doesn't work on most mobile browsers, not even in Chrome dev tool while at a responsive mode. Not even on Safari responsive mode. Nor on iOS simulators. Need a better parallax using pure CSS/SCSS that will work everywhere. Also would appreciate the help creating something like the following:

User generated image
This is where the round object should have the look and feel of a magnifying glass and will work on all devices. I'd really appreciate the help asap. Thanx in advance.
Avatar of Julian Hansen
Julian Hansen
Flag of South Africa image

Do you have some code for us to look at - preferably a link.

Difficult to diagnose just from an image.
This question needs an answer!
Become an EE member today
7 DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform.
View membership options
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.