attempt to fix the css animation issue