trying to fix css animation delay issue