My current project involves animating a div with the ID "ani" using the CSS code below:
#ani {
width: 100px;
height: 100px;
background: red;
color:white;
position :relative;
animation: mymove 5s infinite;
}
@keyframes mymove {
0% {left: 0px;}
25% {left: 250px;}
50% {left:500px;}
75% {left: 250px}
100% {left: 0px;}
}
I am interested in finding a way to continuously display the changing value of the 'left' property in CSS as it transitions. Essentially, I want the value of 'left' to be visible on the screen at all times. Is there a method to bind the 'left' value to, for example, a text field? AngularJS doesn't seem to work within style-sheets.