Changed motion technic for a more consistent motion and for cross browser support