Created
January 31, 2019 22:12
-
-
Save CB9TOIIIA/19f13c0c45df4d787ea489b54b6a6bee to your computer and use it in GitHub Desktop.
shine blesk
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.blesk { | |
width: 100%; | |
padding: 10px 15px; | |
/* background: #3260d6; */ | |
border-radius: 7px; | |
margin-bottom: 20px; | |
display: block; | |
outline: 0; | |
border: 0; | |
color: #fff; | |
font-size: 18px; | |
text-transform: uppercase; | |
cursor: pointer; | |
background-size: 200% 100%,auto,100% 2px,100% 2px,100% 1px,100% 1px; | |
background-image: linear-gradient(45deg,rgba(255,255,255,.0) 30%,rgba(255,255,255,.8),rgba(255,255,255,.0) 70%); | |
background-repeat: no-repeat; | |
background-position: -200% 0,0 0,0 0,0 100%,0 4px,0 calc(100% - 4px); | |
animation: shine 5s ease reverse infinite; | |
} | |
@keyframes shine { | |
100% { | |
background-position: 500% 0, 0 0, 0 0, 0 100%, 0 4px, 0 calc(100% - 4px) | |
} | |
20% { | |
background-position: 200% 0, 0 0, 0 0, 0 100%, 0 4px, 0 calc(100% - 4px) | |
} | |
0% { | |
background-position: -200% 0, 0 0, 0 0, 0 100%, 0 4px, 0 calc(100% - 4px) | |
} | |
} | |
@-webkit-keyframes shine { | |
100% { | |
background-position: 500% 0, 0 0, 0 0, 0 100%, 0 4px, 0 calc(100% - 4px) | |
} | |
20% { | |
background-position: 200% 0, 0 0, 0 0, 0 100%, 0 4px, 0 calc(100% - 4px) | |
} | |
0% { | |
background-position: -200% 0, 0 0, 0 0, 0 100%, 0 4px, 0 calc(100% - 4px) | |
} | |
} | |
@-moz-keyframes shine { | |
100% { | |
background-position: 500% 0, 0 0, 0 0, 0 100%, 0 4px, 0 calc(100% - 4px) | |
} | |
20% { | |
background-position: 200% 0, 0 0, 0 0, 0 100%, 0 4px, 0 calc(100% - 4px) | |
} | |
0% { | |
background-position: -200% 0, 0 0, 0 0, 0 100%, 0 4px, 0 calc(100% - 4px) | |
} | |
} | |
@-ms-keyframes shine { | |
100% { | |
background-position: 500% 0, 0 0, 0 0, 0 100%, 0 4px, 0 calc(100% - 4px) | |
} | |
20% { | |
background-position: 200% 0, 0 0, 0 0, 0 100%, 0 4px, 0 calc(100% - 4px) | |
} | |
0% { | |
background-position: -200% 0, 0 0, 0 0, 0 100%, 0 4px, 0 calc(100% - 4px) | |
} | |
} | |
@-o-keyframes shine { | |
100% { | |
background-position: 500% 0, 0 0, 0 0, 0 100%, 0 4px, 0 calc(100% - 4px) | |
} | |
20% { | |
background-position: 200% 0, 0 0, 0 0, 0 100%, 0 4px, 0 calc(100% - 4px) | |
} | |
0% { | |
background-position: -200% 0, 0 0, 0 0, 0 100%, 0 4px, 0 calc(100% - 4px) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment