motion icon indicating copy to clipboard operation
motion copied to clipboard

[motion] animate can't listen the initial changed

Open YeSuX opened this issue 2 years ago • 0 comments

<Motion
      tag="ul"
      :initial="{
        '--rotate': '0deg',
      }"
      :animate="{
        '--rotate': '360deg',
      }"
      :transition="{
        duration: 2,
        repeat: Infinity,
      }"
    >
      <li class="box" :style="{ transform: 'rotate(var(--rotate))' }" />
    </Motion>

https://stackblitz.com/edit/vitejs-vite-iw9ct6?file=src%2FApp.vue

YeSuX avatar Jan 17 '24 16:01 YeSuX