Im currently working on a project that has to update the height of a div (green color) inside a circle by manual data input.
Here is a jsfiddle of the circle im talking about: http://jsfiddle.net/bphs5k8v/
What i need to have happen is the green color to move to random heights within the circle every few seconds (for testing purposes). But i honestly have no clue on how i can accomplish this. I was able to succesfully do this with CSS animations but figured i would need to use javascript for the result of the project anyway.
//HTML
<div class="circle">
<div id="animateddiv1">
</div>
</div>
//CSS
.circle {border-radius: 50%; position: relative; overflow: hidden; background: #8a8a8a; width: 165px; height: 165px; display: inline-block; margin: 0 75px; box-shadow: 0px 4px 2px #191919;}
#animateddiv1 {background: #63B23A; position: absolute; top: 130px; width: 200px; height: 165px;}
I seek your help! thanks :D
#animateddiv1`topCSS property