Skip to content

Commit

Permalink
Add button-jelly
Browse files Browse the repository at this point in the history
  • Loading branch information
jolaleye committed Apr 27, 2019
1 parent cb6edac commit ce9a62f
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions effects/button-jelly.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
<template>
<button>Button</button>
</template>

<style scoped>
button {
z-index: 1;
font-size: inherit;
font-family: inherit;
color: white;
padding: 0.5em 1em;
outline: none;
border: none;
background-color: hsl(246, 45%, 15%);
}
button:hover {
cursor: pointer;
animation: jelly 0.5s;
}
@keyframes jelly {
0%,
100% {
transform: scale(1, 1);
}
25% {
transform: scale(0.9, 1.1);
}
50% {
transform: scale(1.1, 0.9);
}
75% {
transform: scale(0.95, 1.05);
}
}
</style>

0 comments on commit ce9a62f

Please sign in to comment.