Shaking preset
pooyaEst opened this issue · comments
pooya Games commented
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.
Fatih Yıldız commented
{
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 ?
pooya Games commented
Exactly