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.
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
Post a Comment