For a number of projects now I have had elements on the page which I want to translate out of the screen area (have them fly out of the document). In proper code this should be
Use calc
method (http://jsfiddle.net/ATcpw/2/):
.block{
position:absolute;
top: -webkit-calc(100% - 110px);
right:10px;
left:10px;
height:100px;
background:gray;
-webkit-transition: all 2s;
/*this adds GPU acceleration*/
transform: translate3d(0,0,0);
-webkit-transform: translate3d(0,0,0);
}
.block.hide{
top: -100px;
}
Since you are using -webkit
prefix I used it as well.
calc
is supported by majority of browsers: http://caniuse.com/#search=calc