Hellow there!
I have a css code like this. It correctly works in desktop browsers and android browsers except samsung internet browser. I must make this works in all browsers. So anyone please help me.
.image-movie-fixed-01{
Background-image: url(../img/01.jpg);
Background-repeat: no-repeat;
Background-position: center center;
Background-attachment: fixed;
Background-size: cover;
}
At present, you cannot.
According to CanIUse.com, the Samsung Internet browser, version 12.x, does not support background-attachment: fixed
.
https://caniuse.com/background-attachment
As for why it isn't supported, I speculate it's by-design:
fixed
backgrounds are expensive to repaint when scrolling.
background-attachment: fixed
for the same reason:
Fixed-backgrounds have huge repaint cost and decimate scrolling performance, which is, I believe, why it was disabled.
background-attachment: fixed
dates back to CSS 1.0 in 1996. This is not a new feature that Samsung's developers simply haven't gotten around to implementing.