- myDiv.css('clip','rect(50px, 400px, 500px, 50px)');// rect values are calculated from the user click
- myDiv.css('clip','rect(0px, 100vw, 100vh,0px)');
the code above does not seem to work well. I am not sure if this is jquery or browser timing issue.
however, setting a timeout (see below) between css (clip) invocations works perfectly.
your help is welcomed.