Skip to content

Instantly share code, notes, and snippets.

@zkreations
Created January 2, 2018 18:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zkreations/6196fda1f5724ef016a0eb1b5ff08671 to your computer and use it in GitHub Desktop.
Save zkreations/6196fda1f5724ef016a0eb1b5ff08671 to your computer and use it in GitHub Desktop.
Estilos para contador Anime estatico
/*! Anime Counter (static) v1.0.0 */
/*counter*/
.anime-counter-static {
font-size: 16px;
overflow: hidden;
border-radius: 3px;
box-shadow: 0 3px 1px -2px rgba(0, 0, 0, .75);
}
.anime-counter-static .counter {
font-family: arial;
text-align: center;
}
.anime-counter-static::before {
background-repeat: no-repeat;
background-position: center;
background-size: cover;
background-color: transparent;
content: "";
display: block;
}
/*option --> text-counter*/
.anime-text-counter-static {
font-size: 1.2em;
background: #333;
color: #fff;
padding: .5rem 1rem;
box-shadow: 0 4px 8px rgba(0,0,0,.5);
font-weight: 700;
border-left: 4px solid #607D8B;
min-width: 100px;
}
.white .anime-text-counter-static {
background: #fcfcfc;
color: #333;
}
/*option --> graph-counter*/
.anime-graph-counter-static {
display: flex;
padding: .25em;
border-radius: 4px;
background: rgba(0, 0, 0, 0.8);
justify-content: flex-end;
}
.anime-graph-counter-static > span.digit {
background: #212121 !important;
color: #fff;
font-size: 1.2em;
padding: .5em .4em;
margin: 0 1px;
border-radius: 2px;
position: relative;
line-height: 1;
box-shadow: 0 60px 60px -30px rgba(255,255,255, .1) inset, 0 1px 1px 0px rgba(0, 0, 0, .5), 0 1px 0 0 rgba(255,255,255,.15) inset;
border: 1px solid #181818;
width: auto;
height: auto;
display: block;
}
.anime-graph-counter-static > span.digit .blind-plate {
position: absolute;
width: 100%;
top: 50%;
display: block;
border-top: 1px solid rgba(0,0,0,.7);
margin-top: -1px;
left: 0;
border-bottom: 1px solid rgba(255,255,255,.15);
box-shadow: 0 0px 10px 0px rgba(0, 0, 0, .5);
height: auto;
opacity: 1;
}
/*option --> white-counter*/
.white .anime-graph-counter-static > span.digit {
background: #fff !important;
color: #666;
border-color: rgba(0, 0, 0, 0.3);
box-shadow: 0 1px 1px 0px rgba(0, 0, 0, .5);
}
.white .anime-graph-counter-static > span.digit .blind-plate {
box-shadow: 0 0px 10px 0px rgba(0, 0, 0, .25);
border-top-color: rgba(0, 0, 0, 0.3);
}
@media screen and (max-width:780px){
.anime-counter-static{
font-size: 12px;
}
}
/*Personalizar*/
.anime-counter-static::before {
background-image: url(https://i.imgur.com/gpjh9Cg.gif); /*imagen*/
background-color: #050505; /*fondo de la imagen*/
height: 120px; /*altura de la imagen*/
}
.anime-counter-static .counter {
padding: .5em;/*relleno*/
background: #212121;/*color de fondo*/
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment