BlazeFX 1.1.4
dotnet add package BlazeFX --version 1.1.4
NuGet\Install-Package BlazeFX -Version 1.1.4
<PackageReference Include="BlazeFX" Version="1.1.4" />
<PackageVersion Include="BlazeFX" Version="1.1.4" />
<PackageReference Include="BlazeFX" />
paket add BlazeFX --version 1.1.4
#r "nuget: BlazeFX, 1.1.4"
#:package BlazeFX@1.1.4
#addin nuget:?package=BlazeFX&version=1.1.4
#tool nuget:?package=BlazeFX&version=1.1.4
BlazeFX
BlazeFX is a lightweight front-end animation library designed specifically for Blazor components. It empowers developers to effortlessly incorporate a wide array of animations into their Blazor projects without the need for manual CSS writing. By leveraging our pre-built components, you can enjoy seamless animations with minimal setup, enhancing the user experience of your web applications.
Features
- Easy-to-use animation components
- Wide variety of pre-defined animations
- Customizable duration and easing functions
- Compatible with both Blazor WebAssembly and Blazor Server
Installation
To add BlazeFX to your project, run the following command in your terminal:
dotnet add package BlazeFX
Setup
Add the following line to your
_Imports.razor
file:@using BlazeFX
Include the required stylesheet and script in your HTML:
- Stylesheet: Add the following to your HTML <head> section
<link rel="stylesheet" href="/_content/BlazeFX/blazefx.min.css" />
- Script: Add the following script at the end of the <body> tag:
<script src="/_content/BlazeFX/blazefx.js"></script>
For Blazor WebAssembly, modify
index.html
. For Blazor Server, modify_Layout.cshtml
,_Host.cshtml
, orApp.razor
, depending on your project setup.
Usage
BlazeFX simplifies the process of adding animations to your Blazor components. Here's a basic example:
<BlazeFX Animation="Animations.Grow" Easing="Easing.EaseInBounce" Duration="TimeSpan.FromSeconds(2)">
<h1>Hello, Animated World!</h1>
</BlazeFX>
You can easily switch between various animations and adjust parameters like Easing
and Duration
to customize the effect.
Available Animations
- Fade
- Grow
- Shrink
- Slide
- Rotate
- Flip
- Bounce
- ... and more!
Customization Options
Animation
: Choose from a variety of pre-defined animationsEasing
: Select an easing function to control the animation's progressionDuration
: Set the length of the animationDelay
: Add a delay before the animation startsRenderCompleteOnly
: Ensure the animation runs only after pre-rendering is complete.
IMPORTANT! If RenderCompleteOnly is set to true but pre-rendering is not enabled (e.g., in a static server environment), the animation and the component involved may not appear, remaining visibly hidden.
Contributing
We welcome contributions to BlazeFX! If you encounter any issues, have feature requests, or want to improve the library, please feel free to:
- Open an issue
- Submit a pull request
- Discuss potential changes in the issues section
Future Plans
BlazeFX is under active development. Our roadmap includes:
- Introducing more customization options for animations
- Expanding documentation and providing more examples
Support
If you need help or have any questions, please:
- Open an Issue
Troubleshooting
Double Animation on First Load
If animations run twice when your Blazor project/component loads for the first time, use the RenderCompleteOnly="true"
parameter to ensure the animation runs only after pre-rendering is complete.
<BlazeFX RenderCompleteOnly="true" Animation="Animations.Blinking" Easing="Easing.EaseInOut">
<h1>Hello, Animated World!</h1>
</BlazeFX>
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net8.0
- Microsoft.AspNetCore.Components (>= 8.0.10)
- Microsoft.AspNetCore.Components.Web (>= 8.0.10)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.