<div id="element"></div>
body {
padding: 15px;
}
#element {
width: 100px;
height: 100px;
background: blue;
transition: transform 1s;
transform: translateY(0);
}
.move {
transform: translateY(185px) !important; /* invert: -185 */
}
View Compiled
setInterval(function(){
$('#element').toggleClass('move')
}, 1000);
This Pen doesn't use any external CSS resources.