- Home
- /
- Design
- /
- DMBEffectBuilder
- /
- Getting Started
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 .
dotnet add package DMBEffectBuilder2. Add Namespaces
In your _ViewImports.cshtml , add the necessary namespaces to make the extension methods available in all your views.
@using DMBPageBuilder
@using DMBBootstrapBuilder
@using DMBEffectBuilder3. 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.
// Customize duration and timing
@@Html.ImageRender("...").BlurToSharpEffect(duration: "1s", timing: "ease-out")
// Customize effect-specific values
@@Html.ImageRender("...").PulseEffect(scale: 1.1)Common Effects
Curious how it works under the hood?
Check out the architecture guide to understand how EffectBuilder manages resources and rendering.
Architecture