Fixed type assignment in es to be less brittle and added some slick css animations