using window resize to calculate new value of element offset

Printable View