|
@using Syncfusion.Blazor.Notifications
<button @onclick="@Clicked">Open Toast</button>
<SfToast @ref="ToastObj" Title="Adaptive Tiles Meeting" Icon="e-meeting" Content="Toast Content">
<ToastPosition X="Right" Y="Bottom"></ToastPosition>
<ToastAnimationSettings>
<ToastShowAnimationSettings Effect="ToastEffect.None"></ToastShowAnimationSettings>
<ToastHideAnimationSettings Effect="ToastEffect.None"></ToastHideAnimationSettings>
</ToastAnimationSettings>
</SfToast>
@code {
SfToast ToastObj;
private ToastEffect Effects = ToastEffect.None;
public void Clicked()
{
this.ToastObj.Show();
}
} |
Has there been any progress made on this? I'd like to turn off all animations during E2E testing to make the tests easier to orchestrate and therefore think an option like this would be very useful indeed.
Many thanks,
Phil
Hi Vinitha,
That's fantastic news... thanks for the update. Will these changes be able to honour the prefers-reduced-motion media feature? I'm guessing this is easy enough for CSS animations but I wondered whether this would cover javascript managed animations?
Kind regards,
Phil
The animations were practically a disaster in my case. On older Android devices the result PWA application almost were useful. The animations should never be on default, but only by an explicit settings I believe.
Hi Phil,
No. We have planned to disable JavaScript animations through common option. We will validate to disable CSS animation also on analysis and implement this feature.
Regards,
Rajendran R.
Hi Yordan,
Currently, we couldn't disable the animation by default since it is breaking with existing functionality. We have enabled/disabled the animation functionality by default based on component's behavior.
You could disable the animation by default across all the components after we implemented and included the feature.
Regards,
Rajendran R.
Hi Yordhan,
Sorry for the inconvenience caused.
We have planned to implement the feature for our upcoming Volume 2 2022 release. We appreciate your patience until then. Please keep track the status of the feature through the below feedback
https://www.syncfusion.com/feedback/20764/enable-disable-animation-globally-for-blazor-components
We will let you know once the feature is included.
Regards,
Joshna L
Hi Yordhan,
We are glad to announce that we have added the support to “enable and disable the animation Globally” in our Essential Studio 2022 Volume 2 release v20.2.0.36 is rolled out and is available for download under the following link.
Feedback: https://www.syncfusion.com/feedback/20764/enable-disable-animation-globally-for-blazor-components
Release Notes: https://blazor.syncfusion.com/documentation/release-notes/20.2.36?type=all#features
We thank you for your support and appreciate your patience in waiting for this release. Please get in touch with us if you would require any further assistance.
Regards,
Joshna L