Change div position if partially hidden
<p>Please how to dynamically change position of div if it is partially hidden.
I have a main wrapper <code>div</code> which has <code>overflow:hidden</code>. I cant change this, cause I am using an animation.</p>

<p>How do I dynamically detect if div is partially/fully hidden when button clicked and then change its position.</p>

<p><img src="http://i.stack.imgur.com/25VCQ.jpg" alt="enter image description here"></p>
