Sidsel Posted February 4, 2022 Posted February 4, 2022 Site URL: https://www.camillaottesen.dk Hey. I'm using parallax headers in several pages, made with background-attachment: fixed. How can I twist the code, so it will also work i IOS? (i have removed the image-url in the following) [data-section-id="61e145e15bc8c537841f2161"]{ .section-background{ &::after { //creating the element content: ""; width:100%; height:100%; position: absolute; //adding the image background-image:url("IMAGE-URL(removed in this code-example"); background-repeat:no-repeat; opacity:70%; //positioning the image background-size:cover; background-position:center center; background-attachment: fixed; transform: scale(1); } } www.camillaottesen.dk code: Camilla
tuanphan Posted October 23, 2022 Posted October 23, 2022 I Have same problem, then I disabled background-attachment fixed on mobile only Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment