Added smooth transition when activated or deactivated (300ms)