Animation without jquery, slide left and right
问题 I am trying to slide a div to the left when I show it and slide it to the right when I hide it, but I don't want to use jQuery. Is there a way to do simple animation and support IE7 and IE8 without using a javascript library? Here is my show/hide js: function showHide() { var Elliot = document.getElementById('Daniel').style.display; if (Elliot == "block") { document.getElementById('Daniel').style.display = "none"; } else { document.getElementById('Daniel').style.display = "block"; }; }; HTML