<view class="page" catch:touchstart="pageTouchStartHandler" catch:touchend="pageTouchEndHandler">
This is Body
<view class="sideBar" style='{{sideBarStyle}}'>
This is sideBar
</view>
</view>
This is Body This is sideBar .sideBar { background: red; position: fixed; width: 300px; height: 100%; top: 0; right: 0; transform: translate(300px); transition: all 0.5s ea