Animation background color

Hi, I have a custom style for toggle switch button:
   
.e-switch-wrapper .e-switch-inner.e-switch-active,
    .e-switch-wrapper .e-switch-inner.e-switch-active .e-switch-on {
        background-color: #6c757d;
        border-color: #6c757d;
    }
    .e-switch-wrapper:hover .e-switch-inner.e-switch-active .e-switch-on {
        background-color: #6c757d;
        border-color: #6c757d;
    }
    .e-switch-wrapper:hover .e-switch-inner.e-switch-active {
        background-color: #6c757d;
        border-color: #6c757d;
    }

it works, but during the transition from "off" to "on" there is a blue background that disappears when the transition ends.
There is a way to remove this blue?

Thanks

3 Replies 1 reply marked as answer

GK Gayathri KarunaiAnandam Syncfusion Team March 16, 2021 07:34 AM UTC

Hi Lorella, 

Thank you for contacting Syncfusion support. 

We have checked your reported query.  We can change the background color during transition by overriding default CSS class “.e-switch-wrapper .e-switch-on as demonstrated in the below code snippet. 

Index.razor 

<style> 
    .e-switch-wrapper .e-switch-on { 
        background-color: transparent; 
    } 
</style 
 

For your reference, we have prepared a sample based on your requirement. Please check the below link. 


Please get back to us, if you need further assistance. 

Regards, 
Gayathri K 


Marked as answer

LC Lorella Caglio March 16, 2021 08:00 AM UTC

Ok, now it'is perfect!
Thank you for support.



GK Gayathri KarunaiAnandam Syncfusion Team March 17, 2021 04:49 AM UTC

Hi Lorella, 

Thanks for the update. 

We are happy to hear that your requirement has been fulfilled. Please feel free to contact us if you need any further assistance on this. 

Regards, 
Gayathri K 


Loader.
Up arrow icon