How can I make my desktop image parallax? I’m using the Dawn theme and very new to Shopify. I tried fixing the background using the button, but that messed up the banner. How can I do it with CSS and where do I need to put the code?
Hi @PourStudios
I have written a plain CSS to achieve this. This is a static code. If this is what you are looking for, you can also make it dynamic by making changes to the banner component.
Follow these Steps:
- Go to Online Store
- Edit Code
- Find theme.liquid file
- Add the following code just above tag
If you require further help to optimize your store, please don’t hesitate to reach out. If you find this information useful, a Like would be greatly appreciated. And if this solves the problem, please Mark it as Solution!
Best Regards,
Makka
This worked on desktop, but the mobile image should be another image that I have uploaded and shouldn’t be parallax. How can I keep only this on desktop and have a different static image on mobile?
This code should make it responsive and display it for mobile device. You can just change the URL in background-image and it will be displayed for desktop.
THANK YOU SO MUCH! I have been at this for a week now!
Hi @theycallmemakka I see that this is an acceptable solution. But unfortunately it’s not working for me.
I need to have a parallax banner area for desktop and mobile view alike. How do I achieve that?
Can you please help me?
Thanks in advance
seems like the code from the person has disappered - could you share it? would love to implement it with my store