javascript - Is there a way to prevent a container element's background image from being resized upon window scroll in Microsoft Edge? -


i'm working on design uses parallax effect on splash page. in order prolong effect i've given necessary elements height of 200vh, works great in chrome , fire/waterfox. however, in microsoft edge image resized window scrolled, given content issue. should noted if change height of element 100vh, image not resized upon scrolling , issue disappears. but, mentioned earlier, intention prolong parallax effect. below relevant code.

css

#castle {     height: 200vh;     width: 100vw;     background: url('image.svg') no-repeat fixed top;     background-size: cover; } 

screenshots of before , after scroll, respectively.

enter image description here

enter image description here

it perplexes me image fine when document loads, scale distorted upon scrolling.

does know workaround or might causing issue in first place?

any appreciated immensely!


Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

android - Keyboard hides my half of edit-text and button below it even in scroll view -

css - Make div keyboard-scrollable in jQuery Mobile? -