city-casereport/components/coolui-scroller/parallax/index.wxml

20 lines
927 B
Plaintext
Raw Normal View History

2023-12-06 14:22:42 +08:00
<block wx:if="{{direction == 'to top'}}">
<view class="wx-coolui-scroller-parallax parallax-class" style="transform: translate3d(0, {{-(parallax * threshold * config.height / 100)}}px, 0); ">
<slot></slot>
</view>
</block>
<block wx:if="{{direction == 'to bottom'}}">
<view class="wx-coolui-scroller-parallax parallax-class" style="transform: translate3d(0, {{(parallax * threshold * config.height / 100)}}px, 0);">
<slot></slot>
</view>
</block>
<block wx:if="{{direction == 'to left'}}">
<view class="wx-coolui-scroller-parallax parallax-class" style="transform: translate3d({{-(parallax * threshold * config.height / 100)}}px, 0, 0);">
<slot></slot>
</view>
</block>
<block wx:if="{{direction == 'to right'}}">
<view class="wx-coolui-scroller-parallax parallax-class" style="transform: translate3d({{(parallax * threshold * config.height / 100)}}px, 0, 0); ">
<slot></slot>
</view>
</block>