css animations for a tapping event