Skip to content

Instantly share code, notes, and snippets.

@CB9TOIIIA
Created January 31, 2019 22:12
Show Gist options
  • Save CB9TOIIIA/19f13c0c45df4d787ea489b54b6a6bee to your computer and use it in GitHub Desktop.
Save CB9TOIIIA/19f13c0c45df4d787ea489b54b6a6bee to your computer and use it in GitHub Desktop.
shine blesk
.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