SusParallaxStack

Pointer-driven layered stack: bg → pattern → subject → ui (tips) → chrome.
Package
SusKit · Atoms (commercial)
Props
| Name | Type | Default | |
|---|---|---|---|
PatternAmp | Prop<float> | 8f | |
SubjectAmp | Prop<float> | 14f | |
UiAmp | Prop<float> | 22f | |
Enabled | Prop<bool> | true | |
Easing | Prop<float> | 0.08f | |
MinFps | Prop<float> | 24f |
Slots
No slots.
Events
| Name | Field | Payload |
|---|---|---|
ActiveChanged | OnActiveChanged | bool |
Style hooks
USS class contract — override appearance without touching C#. States toggle via these classes:
sus-parallax-stacksus-parallax-stack__bgsus-parallax-stack__chromesus-parallax-stack__patternsus-parallax-stack__subjectsus-parallax-stack__tipssus-parallax-stack__uisus-parallax-stack--off
Usage
csharp
var stack = new SusParallaxStack();
stack.EnsureLayers();
stack.Subject.Add(characterArt);
stack.Chrome.Add(nav);
stack.SetAmps(pattern: 8f, subject: 14f, ui: 4f);| Prop | Role |
|---|---|
PatternAmp / SubjectAmp / UiAmp | Parallax amplitude (px) |
Notes
- Call
EnsureLayers()after build to resolve layer hosts (Bg,Pattern,Subject,Ui,TipHost,Chrome). - Visual look (art, glass) belongs in consumer USS.
See also Layout recipes.