A replacement for jQuery animate