Skip to content

Instantly share code, notes, and snippets.

@rileyjshaw
Created October 16, 2013 08:51
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 rileyjshaw/7004709 to your computer and use it in GitHub Desktop.
Save rileyjshaw/7004709 to your computer and use it in GitHub Desktop.
A Pen by Riley Shaw.
#v-align
- for i in 1..4
.progress
seqs = [
['bq', 'dp', 'qb', 'pd'],
['bo', 'do', 'ob', 'od', 'oq', 'op', 'qo', 'po'],
['o', 'O', '0', 'O'],
['-', '—', '--', '——', '---', '———', '---', '——', '--', '—']
]
cycle = (el, seq, i = 0) ->
el.text(seq[i %= seq.length])
setTimeout(cycle, 150, el, seq, ++i)
($ '.progress').each (i) ->
cycle ($ this), seqs[i]
@import "compass"
body
background: #334
#v-align
position: absolute
top: 50%
width: 100%
text-align: center
div
display: inline-block
height: 60px
width: 60px
margin: -30px 30px 0
font: 20px/60px monospace
text-align: center
color: #224
background: #8cc
+border-radius(30px)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment