Asked by:
aspx transitions

Question
-
User-714272699 posted
im not sure if this is the best place to ask this question, but any help will be greatly appreciated
i have an aspx page that runs java to transition the pages
var bgImageArray = ["New/BG7.jpg", "New/BG8.jpg", "New/BG9.jpg", "New/BG10.jpg", "New/BG11.jpg", "New/BG12.jpg", "New/BG13.jpg"], secs = 10; // 5 mins = 300 bgImageArray.forEach(function (img) { new Image().src = img; // caches images, avoiding white flash between background replacements }); function backgroundSequence() { //window.clearTimeout(); var k = 0; for (i = 0; i < bgImageArray.length; i++) { setTimeout(function () { document.documentElement.style.background = "url(" + bgImageArray[k] + ") no-repeat center center fixed"; document.documentElement.style.backgroundSize = "cover"; document.documentElement.style.transition = "3s"; if ((k + 1) === bgImageArray.length) { setTimeout(function () { backgroundSequence() }, (secs * 1000)) } else { k++; } }, (secs * 1000) * i) } }
this adds a transition to the style of the background
document.documentElement.style.transition = "3s";
in chrome this works amazingly and looks really good however IE11 hates it and just ignores the transition element
i have inspected both of these when they have been in the browsers and the code applies the same way so i don't understand why they dont behave the same
Thanks in Advance
Friday, March 1, 2019 11:40 AM
All replies
-
User753101303 posted
Hi,
You checked F12 Emulation to see if IE11 could use an older IE compatibility mode ? F12 Console could also show a possible JavaScript error.
Friday, March 1, 2019 12:11 PM -
User-714272699 posted
console has no errors and emulation is set to 11 (default)
Friday, March 1, 2019 12:20 PM -
User-2054057000 posted
CSS transitions does not work in IE browser - Does Internet Explorer support CSS transitions?
Friday, March 1, 2019 3:55 PM -
User839733648 posted
Hi towle92,
You could refer to https://developer.mozilla.org/en-US/docs/Web/CSS/transition and https://caniuse.com/#feat=css-transitions
to see that IE version over10 will suppport css transition expected special attribute.
According to your description, I could not fully reproduce your issue.
If possible, please provide the related html codes so that we could reproduce the issue and help you.
Best Regards,
Jenifer
Monday, March 4, 2019 9:21 AM