calculate how many pixels the div needs to be off the screen according to the jquery resolution code example
Example 1: get page resolution jquery
$( window ).width()
Example 2: jquery set width
$(".example").width("px");
$( window ).width()
$(".example").width("px");