Hi,
Is it possible that when a webpage loads I can have javascript change the class of a div from:
.up {
transform: translate(0px,-500px)
transition: all 5s ease-in;
}
to
.down {
transform: translate(0px,0px)
transition: all 5s ease-in;
}
Essentially I would like a div to move down into place from the top of screen to the middle of screen after the page has loaded.
Some thing like this?:
Code:
<script type="text/javascript">
function transform()
{
document.getElementById("content").className = "down";
</script>
<div id="content" class "up" onload="transform()">
</div>
</html>
would this work or is there a better way?
Adrian.