vueuse / motion

🤹 Vue Composables putting your components in motion

Home Page:https://motion.vueuse.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Shaking preset

pooyaEst opened this issue · comments

Thx for this great library.
Suggestion: a shaking preset which shakes the element left and right or top and down few times preferably with ability to indicate number of shakes would be nice.

@pooyaEst

{
  initial: { x: 0 },
  enter: {
    x: [0, -10, 0] as any,
    transition: {
      repeat: 1,
      repeatType: 'mirror',
      duration: 400,
    },
  }, // issue: https://github.com/vueuse/motion/issues/137
}

like this ?

Exactly