Skip to content

Instantly share code, notes, and snippets.

@alexmwalker
Created March 1, 2012 12:41
Show Gist options
  • Select an option

  • Save alexmwalker/1949602 to your computer and use it in GitHub Desktop.

Select an option

Save alexmwalker/1949602 to your computer and use it in GitHub Desktop.
Two Bees or not Two Bees?
/**
* Two Bees or not Two Bees?
*/
html:before, html:after{
content:"٭";
color:yellow;
font-size:350px;
position:absolute;
top:-230px;
left:138px;
z-index:900
}
html:after{
color:orange;
font-size:300px;
top:-150px;
left:8px;
}
body{
background: #000;
min-height:100%;
text-align:center;
font-size:24px;
}
body:before{
content:"ৎ";
color:green;
font-size:350px;
position:absolute;
top:0px;
left:0px;
}
body:after{
content:"ઇ";
color:#390;
top:50px;
left:100px;
font-size:300px;
position:absolute;
}
a:link {color:#f0f;
text-decoration:none;
}
a:hover {color:#f9f;
text-decoration:none;
}
a:visited {color:#00f;
text-decoration:none;
background:#f00
}
a:visited #insertcoin p{color:#ff0;
text-decoration:none;
background:#f00;
border:1px red dotted!important;
}
#insertcoin {
width:30%;
height:250px;
margin:30px auto;
border:5px dashed #fff;
position:relative
}
#flyholder{
outline:1px red dashed;
}
#fly:after, #fly2:after, #fly:before, #fly2:before{
content:"࿉";
position:absolute;
color: #aaa;
font-size:35px;
left:0px;top:0px;
padding-bottom:40px;
transform: rotate(-45deg);
}
#fly:before, #fly2:before{
content:"ದ";
position:absolute;
color:orange;
background-color:#fff;
border-radius:50px;
width:5px;height:5px;
left:25px;
font-size:45px;
top:15px;
transform: rotate(15deg);
}
#fly{
color:brown;
background:green;
background-size:100% 100%;
position:absolute;
width:12px;
height:42px;
border-radius:20px;
animation: hz 20s infinite cubic-bezier(.8,0,.6,1);
}
#vertical{
position:absolute;
animation: vt 20s .5s infinite cubic-bezier(.4,0,.6,1);
}
#bumper {
height:200%
}
#coin {
text-align:center;
}
@keyframes hz { /* vertical movement */
0%,100% {left:0;}
50% {left:380px}
}
@keyframes vt { /* vertical movement */
0%,100% {top:0;}
50% {top:190px;}
}
a[href^="http"] { color: #1f6053; }
a[href$="start"] { color: red; }
<!-- content to be placed inside <body>…</body> -->
<input type="checkbox" id="a11">
<a id="coin" href="#star">
<div id="insertcoin"><div id="bumper"></div>
<div id="vertical">
<div id="fly"></div>
</div>
<p>hi</p>
</div>
<label for="a11">Start</label>
<p>Insert Coin</p></input>
</a>
{"view":"split-vertical","seethrough":"","prefixfree":"1","page":"css"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment