vendredi 28 novembre 2014

IE Vendor prefix/non-prefix Transform Translate not working


I've written a short bit of HTML that allows the user to click a button and watch a slide come into view.


This is the function that runs the 'animation':



function startSlideQuestions(start_slide) {
var startSlide = document.getElementById(start_slide);
startSlide.style.webkitTransform = "translate(0, -100%)";
startSlide.style.transform = "translate(0, -100%)";
}


It pulls a div from the bottom of the screen into view by translating it its own height from the bottom.


This works fine in Chrome, Safari, Firefox and Opera but does nothing in Internet Explorer.


Thanks for your help!





Aucun commentaire:

Enregistrer un commentaire