Skip to content

Instantly share code, notes, and snippets.

@gustaff-weldon
Created April 9, 2017 21:20
Show Gist options
  • Save gustaff-weldon/3d100d3ffaaa608029821c11454c38e3 to your computer and use it in GitHub Desktop.
Save gustaff-weldon/3d100d3ffaaa608029821c11454c38e3 to your computer and use it in GitHub Desktop.
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
.button {
background: #f06;
padding: 20px;
}
.bg-trans:hover {
background: yellow;
}
.bg-trans {
transition:background .5s ease-in-out;
}
.bg-anim {
animation: flashBg 3.5s infinite ease-in-out;
}
.blink {
animation: blink 3.5s infinite ease-in-out;
}
.off-1 {
animation-delay: 200ms;
}
.off-2 {
animation-delay: 400ms;
}
.slide-shine {
background: #eee;
position:relative;
}
.slide-shine:after {
content: "";
width: 2%;
background: linear-gradient(to right, #eee, red 50%, #eee);
position: absolute;
left: 0;
top: 0;
bottom: 0;
animation: slide 3s infinite alternate ease-in;
}
@keyframes slide {
0% {
left; 0;
}
100% {
left: 100%
}
}
@keyframes flashBg {
from, 50%, to {
background: #f06;
}
25%, 75% {
background: yellow;
}
}
@keyframes blink {
0%, 50%,
100% {
opacity: 0;
}
25%, 75% {
opacity: 1;
}
}
<button class="button bg-trans">Missa Button</button>
<button class="button bg-anim">Missa Button</button>
<p class="blink">processing</p>
<p >processing<span class="blink">...</span></p>
<p >processing<span class="blink">.</span><span class="blink off-1">.</span><span class="blink off-2">.</span></p>
<p class="slide-shine">shine proccessing...</p>
// alert('Hello world!');
{"view":"split","fontsize":"100","seethrough":"","prefixfree":"1","page":"all"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment