Streaming live at 10am (PST)

Background: Fixed doesn't work on Chrome on touchscreen devices


#1

Hello @Everyone,

Did you notice that backgroudn:fixed that you can use for a parallax effect on the background images are now depreciated on webkit browsers such as Chrome / Safari etc?

How do you guys workaround to make it happen again?


#2

@Zacchino do you have a source for this or where are you seeing this behavior? I'm testing a Webflow site in Chrome which is using background-attachment: fixed; styles without any issues :thinking: maybe I missed an announcement somewhere? :grimacing:

Still the same level of support as before: http://caniuse.com/#search=background-attachment

We already deactivate background-attachment: fixed; styles on mobile devices due to some repainting/flicker issues it can cause.

EDIT: The .w-mod-touch * { background-attachment: scroll !important;} style is applied on touch screen devices (mobile and desktop).


#3

@Waldo,

I have v56 of Chrome (probably latest), and http://thrivers.webflow.io/#Mission has a fixed Bg, which isn't working anymore.

Seems like Webflow re-writes an !important rule making our css irrelevant:


#4

@Zacchino are you on a touch screen device by chance? That's when that style is applied as the performance repainting/flicker issues occur on touch screen devices, my apologies for not including that information earlier, I'm updating my reply with an edit.

The fixed background images on your site are working fine for me on this end.


#5

Ohhh yes I am on a touch-enabled Windows Laptop.

Makes sense!

Thanks Waldo.


#6

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.