Enabling css transitions