Skip to content

Instantly share code, notes, and snippets.

View rssems's full-sized avatar

Selçuk Saydam rssems

View GitHub Profile
origin = null
timer = null
time = ->
now = Date.now()
secs = Math.floor((now - origin) / 1000)
s = secs % 60
min = Math.floor(secs / 60)
if s < 10 then s = "0" + s
if min < 10 then min = "0" + min
@rssems
rssems / A-Pen-by-Rıza-Selçuk-Saydam.markdown
Created November 10, 2013 19:55
A Pen by Rıza Selçuk Saydam.
@rssems
rssems / index.html
Created May 25, 2013 10:12
A CodePen by Rıza Selçuk Saydam. Flutterby - This is a single element pure CSS3 butterfly and animation.
<div class="minimalsworld">
<span class="flutterby">.</span>
</div>
p { transition: all 0s 9999999s; } span:active ~ p { transition: all 0s; color: red; }
<span>TIKLA</span> <p>Web Magazin</p>
span:focus ~ p { color: red; }
<span tabindex="0">TIKLA</span> <p>Web Magazin</p>
p:target { color: red; }
<a href="#id">TIKLA</a> <p id="id">Web Magazin</p>
*,
*:after,
*:before {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
padding: 0;
margin: 0;
}