Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shaking preset #116

Open
pooyaEst opened this issue Apr 24, 2023 · 2 comments
Open

Shaking preset #116

pooyaEst opened this issue Apr 24, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@pooyaEst
Copy link

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.

@0fatihyildiz
Copy link
Contributor

@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 ?

@pooyaEst
Copy link
Author

pooyaEst commented Jul 2, 2023

Exactly

@BobbieGoede BobbieGoede added the enhancement New feature or request label Feb 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants