I've encountered an issue where I am trying to move a div by adjusting its left property, but no transition is taking place. Regardless of the changes I make to my code, the result remains the same. Below is the current state of the code. Can anyone identify what I might be overlooking?
HTML:
<div ng-style="pos" class="box"></div>
CSS:
.box {
position:absolute;
top:250px;
left:100px;
background-color:tan;
height:50px;
width:50px;
transition: top 1800ms linear, left 1800ms linear;
}
JS:
function moveController($scope) {
$scope.pos = {
top: 250,
left: 100
}
$scope.pos.left = 650;
}
Although the box appears correctly on the screen with the CSS formatting, it fails to transition over the specified 1800ms period. Can someone shed some light on why this might be happening?