Getting Started — EffectBuilder

From zero to beautiful effects in minutes.

1. Install the NuGet Package

To use the full range of effects (Image, Section, Inner Section), install DMBEffectBuilder alongside DMBPageBuilder and DMBBootstrapBuilder .

Install DMBEffectBuilder
dotnet add package DMBEffectBuilder

2. Add Namespaces

In your _ViewImports.cshtml , add the necessary namespaces to make the extension methods available in all your views.

_ViewImports.cshtml
@using DMBPageBuilder
@using DMBBootstrapBuilder
@using DMBEffectBuilder

3. Apply Your First Effect

Effects are extension methods chained directly onto their target builder. Depending on what you are building, you have access to different effect families.

On Images
@@Html.ImageRender("...").PulseEffect()
On Sections
@@Html.SectionBuilder().GlassEffect()

4. Customize Parameters

Most effects accept parameters to fine-tune the animation or appearance. Pass named arguments directly to the effect method.

Customizing parameters
// Customize duration and timing
@@Html.ImageRender("...").BlurToSharpEffect(duration: "1s", timing: "ease-out")

// Customize effect-specific values
@@Html.ImageRender("...").PulseEffect(scale: 1.1)
Common Effects
.GrayscaleHoverEffect()
.BlurToSharpEffect()
.ZoomHoverEffect()
.PulseEffect()
.FocusSpotEffect()

Curious how it works under the hood?

Check out the architecture guide to understand how EffectBuilder manages resources and rendering.

Architecture