Skip to content

Instantly share code, notes, and snippets.

@Acconut
Created August 28, 2012 15:29
Show Gist options
  • Save Acconut/3499123 to your computer and use it in GitHub Desktop.
Save Acconut/3499123 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
*/
#warpper {
width: 20px;
height: 20px;
text-align: center;
padding: 5px 0px;
box-shadow: inset 0px -5px 10px white, inset 0px 5px 10px white;
position: relative;
overflow: hidden;
}
#warpper #layer {
position: absolute;
height: 33px;;
width: 100%;
box-shadow: inset 0px -5px 10px white, inset 0px 5px 10px white;
z-index: 2;
top: -3px;
}
#inner {
z-index: 1;
position: absolute;
top: -213px;
width: 100%;
animation-duration: 10s;
animation-name: rot;
animation-iteration-count: infinite;
animation-timing-function: linear;
}
@keyframes rot {
from { top: 3px; }
to { top: -213px; }
}
ul {
padding: 0px;
margin: 0px;
}
li {
list-style: none;
font-family: arial;
font-size: 20px;
}
<div id="warpper">
<div id="inner">
<ul>
<li>1</li>
<li>2</li>
<li>3</li>
<li>4</li>
<li>5</li>
<li>6</li>
<li>7</li>
<li>8</li>
<li>9</li>
<li>0</li>
</ul>
</div>
<div id="layer"></div>
</div>
{"view":"split","fontsize":"100","seethrough":"","prefixfree":"1","page":"css"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment