[fix] change animation styles and use attributes of iframe