Animations Problem:
Chrome & Firefox works
IE9-11: Animations works not correctly :/
myArray contains the buildings ID and shuffle is only for randomize the sort
var skyline = Snap.select("#skylines");
var bottles = [
"Flasche1",
"Flasche2",
"Flasche3",
"Flasche4"
];
$("#drink").click(function () {
hideBuildings(allBuildings);
startBuildings(bottles);
$('.main').moveTo(3); //Onepage Scroll
});
function hideBuildings(myArray) {
for (var i = 0; i < myArray.length; i = i + 1) {
$('#' + myArray[i]).css({opacity: 0 });
slideDown(myArray[i]);
}
}
/*
* Slide Down
*/
function slideDown(el) {
var cuel = skyline.select("#" + el);
//the height of a building
var a = cuel.getBBox().height;
cuel.animate({
transform: "t0, t" + a
}, 600);
}
function startBuildings(myArray) {
var myArray = shuffleArray(myArray);
for (var i = 0; i < myArray.length; i = i + 1) {
$('#' + myArray[i]).css({opacity: 1});
slideUp(myArray[i], 0, randomFromInterval(1470, 2000));
}
}
//Slide Up
function slideUp(el, y, duration) {
var cuel = skyline.select("#" + el);
cuel.animate({
transform: "t0, t" + -y,
opacity: 1
}, duration, mina.bounce);
}
SVG Problem:
SVG looks correct in Firefox and Chrome but not in IE11 i want 100% width but is not working in IE9-11
SVG Open tag:
<svg id="skylines" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="703px"
preserveAspectRatio="xMinYMin" height="123.365px" viewBox="0 0 703 123.365" enable-background="new 0 0 703 123.365" xml:space="preserve">
CSS:
.skyline-wrapper svg {
height: 100%;
width: 100%;
display: block;
}
I can not accurately describe both problems because I have no idea where they come from
Link http://swisslayer.ch/drink/splash.html click on "JA" thx greetings from Switzerland