Sticky floating animated box using CSS transform and JS