Blazor.Animate updated to .NET Core 3.1 with better support for Blazor WebAssembly
Last month I wrote about a new library called Blazor.Animate which aims to make it easier to add animations into Blazor Applications. There’s now a new version 2.0.0 available from NuGet.
The new version adds couple things:
- The library now targets .NET Core 3.1, which is a LTS-version of .NET Core.
- The library now works better with Blazor WebAssembly (thanks to Matthias Gernand)
The project repository now contains a new WebAssembly sample.
Background
If you’re new to Blazor.Animate, here’s a quick introduction to the library. Blazor.Animate is a Blazor Component which allows you to animate how other components are brought into the view. The library is powered by AOS.
To animate a component, wrap it inside Animate-component and use the Animation-parameter to define the animation:
<Animate Animation="Animations.ZoomIn" Duration="TimeSpan.FromSeconds(0.5)" > <Counter></Counter> </Animate>
The library currently supports the following animations:
- Fade
- FadeIn
- FadeUp
- FadeDown
- FadeLeft
- FadeRight
- FadeUpRight
- FadeUpLeft
- FadeDownRight
- FadeDownLeft
- FlipUp
- FlipDown
- FlipLeft
- FlipRight
- SlideUp
- SlideDown
- SlideLeft
- SlideRight
- ZoomIn
- ZoomInUp
- ZoomInDown
- ZoomInLeft
- ZoomInRight
- ZoomOut
- ZoomOutUp
- ZoomOutDown
- ZoomOutLeft
- ZoomOutRight