HtmlForgeX

API Reference

Class

VisibilityGlobalConfig

Namespace HtmlForgeX
Assembly HtmlForgeX
Modifiers sealed

Controls behavior of HtmlForgeX helper scripts related to "visible" / deferred initialization.

Inheritance

  • Object
  • VisibilityGlobalConfig

Constructors

public VisibilityGlobalConfig() #

Properties

public HfxWhenVisibleMode WhenVisibleMode { get; set; } #

Determines when window.htmlForgeXWhenVisible(...) callbacks are executed. : run when the element is displayed (default) : run when the element enters the viewport (IntersectionObserver)

public String ViewportRootMargin { get; set; } #

Root margin used by the IntersectionObserver when WhenVisibleMode is Viewport. Typical values: "200px" or "200px 0px".

public Double ViewportThreshold { get; set; } #

Threshold used by the IntersectionObserver when WhenVisibleMode is Viewport.