Added CSS animation and transition