Remove some unnecessary js code & fix css animation code for consistent.