feat: add ParallaxImage scroll-parallax component to DeepDrftShared.Client
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
@inherits ParallaxImageBase
|
||||
|
||||
<div @ref="WindowRef"
|
||||
class="parallax-window @(FullWidth ? "full-width" : "") @Class"
|
||||
role="@(Alt1 != null ? "img" : "presentation")"
|
||||
aria-label="@Alt1"
|
||||
aria-hidden="@(Alt1 == null ? "true" : null)"
|
||||
style="--window-height: @WindowHeightValue; --parallax-pos: 0%;">
|
||||
|
||||
<div class="layer layer-1"
|
||||
style="background-image: url('@Image1'); background-size: @ImageWidth @ImageHeight;">
|
||||
</div>
|
||||
|
||||
@if (Image2 != null)
|
||||
{
|
||||
<div class="layer layer-2"
|
||||
style="background-image: url('@Image2'); background-size: @ImageWidth @ImageHeight;">
|
||||
</div>
|
||||
}
|
||||
</div>
|
||||
Reference in New Issue
Block a user