Rendering Pipeline — EffectBuilder

From Fluent C# to optimized HTML & CSS.

1

Fluent API Call

It all starts in your Razor view with a simple method call. Each effect is an extension method on builders like ImageRenderBuilder , SectionBuilder , or InnerSectionBuilder .

@@Html.ImageRender("/img.png").BlurToSharpEffect()
@@Html.SectionBuilder().GlassEffect()
2

CSS Registration

Inside the extension method, the system checks whether the effect's CSS file is already registered for the current request. If not, it adds it to PageInformation via PageRegistry .

page.SetStylesheet("/css/imageEffect/BlurToSharpEffect.css");
page.SetStylesheet("/css/sectionEffect/GlassEffect.css");
3

Class & Style Attribution

The builder adds the specific CSS classes to the component. If custom parameters are provided, they are injected as CSS variable overrides in a style attribute.

builder.AddClass("eb-image-effect-blur-to-sharp eb-image-effect-blur-to-sharp-var");
builder.SetStyle("--eb-image-effect-duration", "0.8s");

Final HTML Output

When .Render() is called (or implicitly at the end of a using block), the final HTML is generated with all registered classes and style variables.

<img src="/img.png"
     class="eb-image-effect-blur-to-sharp eb-image-effect-blur-to-sharp-var"
     style="--eb-image-effect-duration:0.8s" />

Chaining Multiple Effects

When multiple effects are chained, the pipeline repeats steps 2 and 3 for each effect. Classes are appended and styles are merged — no collision between effects.

Chained effects
@@Html.ImageRender("/img.png")
    .BlurToSharpEffect(duration: "0.8s")
    .PulseEffect(scale: 1.05)
    .Render()
Optimized for Speed

Only used CSS files are loaded and all customization relies on native CSS variables — performance impact is nearly zero.

Explore the Catalog

Now that you know how it works, explore all available effects.

Image Effects