diff --git a/assets/mystyle.css b/assets/mystyle.css new file mode 100644 index 0000000..a7ea48c --- /dev/null +++ b/assets/mystyle.css @@ -0,0 +1,50 @@ + +.my-animation-shake { + animation: shake 0.5s; + } + + @keyframes shake { + 0% { + transform: translate(1px, 1px) rotate(0deg); + } + + 10% { + transform: translate(-1px, -2px) rotate(-1deg); + } + + 20% { + transform: translate(-3px, 0px) rotate(1deg); + } + + 30% { + transform: translate(3px, 2px) rotate(0deg); + } + + 40% { + transform: translate(1px, -1px) rotate(1deg); + } + + 50% { + transform: translate(-1px, 2px) rotate(-1deg); + } + + 60% { + transform: translate(-3px, 1px) rotate(0deg); + } + + 70% { + transform: translate(3px, 1px) rotate(-1deg); + } + + 80% { + transform: translate(-1px, -1px) rotate(1deg); + } + + 90% { + transform: translate(1px, 2px) rotate(0deg); + } + + 100% { + transform: translate(1px, -2px) rotate(-1deg); + } + } \ No newline at end of file diff --git a/components/Quizz/Drag.vue b/components/Quizz/Drag.vue index 197f865..bc7c71a 100644 --- a/components/Quizz/Drag.vue +++ b/components/Quizz/Drag.vue @@ -1,37 +1,23 @@