<style>
.a {
width: 500px;
height: 300px;
background-color: #666;
}
</style>
<body>
<div class="a">
</div>
<script>
function initiate() {
setInterval( performRotation, 1000);
}
function performRotation() {
document.getElementsByClassName('a')[0].style.transform = 'rotate(50deg)';
document.getElementsByClassName('a')[0].style.transform = 'rotate(90deg)';
}
window.addEventListener('load', initiate);
</script>
</body>
https://jsfiddle.net/TyTyT/frmawt85/
I encountered an issue where the transform style halts at 90deg and fails to proceed further.
My vision was to have the DIV tag oscillate between 50deg and 90deg.
Any suggestions on how to achieve this?