Skip to content

Commit

Permalink
Merge pull request jolaleye#10 from zmj97/master
Browse files Browse the repository at this point in the history
fix shine effect bug in safari
  • Loading branch information
jolaleye authored Jun 24, 2019
2 parents da7a7bf + 81c19c2 commit bbb001c
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions effects/button-shine.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ button {
border: none;
background-color: hsl(236, 32%, 26%);
overflow: hidden;
cursor: pointer;
}
button::after {
Expand All @@ -24,15 +25,11 @@ button::after {
top: -50%;
bottom: -50%;
width: 1.25em;
transform: translateX(-525%) rotate(35deg);
}
button:hover {
cursor: pointer;
transform: translate3d(-525%, 0, 0) rotate(35deg);
}
button:hover::after {
transition: transform 0.45s ease-in-out;
transform: translateX(200%) rotate(35deg);
transform: translate3d(200%, 0, 0) rotate(35deg);
}
</style>

0 comments on commit bbb001c

Please sign in to comment.