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:
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:
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.
background: url(/image.jpg) fixed;
background-position: center center;
background-repeat: no-repeat;
background-size: cover;
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:
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.
This question needs an answer!
Become an EE member today
7 DAY FREE TRIALMembers 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.
Difficult to diagnose just from an image.