transform.uvue 1.4 KB
Newer Older
1
<template>
DCloud-WZF's avatar
DCloud-WZF 已提交
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
  <!-- #ifdef APP -->
  <scroll-view style="flex: 1">
    <!-- #endif -->
    <view>
      <view class="baseStyle" style="transform: translateX(120%)"
        >translateX(120%)</view
      >
      <view class="baseStyle" style="transform: translateY(-30rpx)"
        >translateY(-30rpx)</view
      >
      <view class="baseStyle" style="transform: translate(120%, 50%)"
        >translate(120%,50%)</view
      >
      <view class="baseStyle" style="transform: scaleX(0.8)">scaleX(0.8)</view>
      <view class="baseStyle" style="transform: scaleY(0.8)">scaleY(0.8)</view>
      <view class="baseStyle" style="transform: scale(0.8, 0.8)"
        >scale(0.8,0.8)</view
      >
      <view class="baseStyle" style="transform: rotate(20deg)"
        >rotate(20deg)</view
      >
      <view class="baseStyle" style="transform: rotateX(50deg)"
        >rotateX(50deg)</view
      >
      <view class="baseStyle" style="transform: rotateY(50deg)"
        >rotateY(50deg)</view
      >
      <view class="baseStyle" style="transform: rotateZ(50deg)"
        >rotateZ(50deg)</view
      >
    </view>
    <!-- #ifdef APP -->
  </scroll-view>
  <!-- #endif -->
36 37 38
</template>

<script lang="ts">
DCloud-WZF's avatar
DCloud-WZF 已提交
39 40 41 42 43 44
export default {
  data() {
    return {}
  },
  methods: {},
}
45 46 47
</script>

<style>
DCloud-WZF's avatar
DCloud-WZF 已提交
48 49 50 51 52 53 54 55 56 57
.baseStyle {
  background-color: cadetblue;
  margin: 10rpx;
  width: 300rpx;
  height: 300rpx;
  align-items: center;
  flex: 1;
  justify-content: center;
}
</style>