CodeChops.Crossblade 1.0.6

There is a newer version of this package available.
See the version list below for details.
dotnet add package CodeChops.Crossblade --version 1.0.6                
NuGet\Install-Package CodeChops.Crossblade -Version 1.0.6                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="CodeChops.Crossblade" Version="1.0.6" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add CodeChops.Crossblade --version 1.0.6                
#r "nuget: CodeChops.Crossblade, 1.0.6"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install CodeChops.Crossblade as a Cake Addin
#addin nuget:?package=CodeChops.Crossblade&version=1.0.6

// Install CodeChops.Crossblade as a Cake Tool
#tool nuget:?package=CodeChops.Crossblade&version=1.0.6                

Crossblade

Crossfades for your favourite Blazor website

Crossblade is a Blazor component for enabling crossfades when navigating between pages on your Blazor website. It works on every hosting model: Blazor WebAssembly (ASP.NET core hosted) or Blazor ServerSide. Crossfades will be triggered when navigating to different pages by default.

Check out www.CodeChops.nl to see this package in action, and to see more projects.

Getting started

  1. Install the package CodeChops.Crossblade in your Blazor project.
  2. Add builder.Services.AddCrossblade() to your Program.cs and provide the correct RenderEnvironment argument.
  3. Wrap your main component in the Crossblade component.
  4. Provide the following parameters (or don't provide them for the defaults):
    • AnimationDuration: The animation duration in milliseconds (default: 350ms).
    • FireOnNavigationChanging: Crossfade when navigating to different locations on your website (default: true).
    • Position: The position of the crossfade containers (default: relative).
    • TransitionTimingFunction: The transition timing function (default: ease-in).

If crossfades have to be triggered manually, simply call await CrossBlade.Execute().

Try it out

In order to try out this package, you need to execute the following easy steps:

  • Create a new Blazor ServerSide / WebAssembly (hosted) project from the default templates of .NET 7.
  • Follow the Getting started steps above.
  • Optionally add the following css to your site.css or app.css (depending on the hosting model):
/* This will create a white background so the crossfades look better. */

main {
    background-color: white;
}
Product Compatible and additional computed target framework versions.
.NET net7.0 is compatible.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.11 138 2/25/2024
1.0.10 111 2/25/2024
1.0.9 125 2/24/2024
1.0.8 126 2/24/2024
1.0.7 198 5/8/2023
1.0.6 166 5/8/2023
1.0.5 153 5/8/2023
1.0.4 148 5/8/2023
1.0.3 150 5/8/2023
1.0.2 301 1/8/2023
1.0.1 311 1/6/2023
1.0.0 297 1/6/2023

Added TransitionTimingFunction and Position.