Skip to content

Commit

Permalink
Rename spin animation (#1333)
Browse files Browse the repository at this point in the history
The spin animation defined by selectr collides with the spin
animation defined by tailwind. It overrides the animation and causes
the spinning elements to spin offcenter. By renaming it we kinda
namespace it and prevent a collision.
  • Loading branch information
mdix committed May 29, 2021
1 parent b012be6 commit 0fabe6f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/js/assets/selectr/selectr.scss
Expand Up @@ -405,16 +405,16 @@
-webkit-transform-origin: 50% 0 0;
transform-origin: 50% 0 0;

-moz-animation: 500ms linear 0s normal forwards infinite running spin;
-webkit-animation: 500ms linear 0s normal forwards infinite running spin;
animation: 500ms linear 0s normal forwards infinite running spin;
-moz-animation: 500ms linear 0s normal forwards infinite running selectr-spin;
-webkit-animation: 500ms linear 0s normal forwards infinite running selectr-spin;
animation: 500ms linear 0s normal forwards infinite running selectr-spin;
border-width: 3px;
border-style: solid;
border-color: #aaa #ddd #ddd;
border-radius: 50%;
}

@-webkit-keyframes spin {
@-webkit-keyframes selectr-spin {
0% {
-webkit-transform: rotate(0deg) translate3d(0px, -50%, 0px);
transform: rotate(0deg) translate3d(0px, -50%, 0px);
Expand All @@ -424,7 +424,7 @@
transform: rotate(360deg) translate3d(0px, -50%, 0px);
}
}
@keyframes spin {
@keyframes selectr-spin {
0% {
-webkit-transform: rotate(0deg) translate3d(0px, -50%, 0px);
transform: rotate(0deg) translate3d(0px, -50%, 0px);
Expand Down

0 comments on commit 0fabe6f

Please sign in to comment.