Skip to content
Permalink
Browse files

css transition -> JS animation

  • Loading branch information
pakastin committed Sep 16, 2015
1 parent 4dab72f commit aa2b545f24f6ef7abb1f9b47cf26933b32757b71
Showing with 670 additions and 284 deletions.
  1. +6 −4 css/index.styl
  2. +312 −141 dist/deck.js
  3. +1 −1 dist/deck.min.js
  4. +6 −4 example/example.css
  5. +1 −1 example/index.html
  6. +78 −0 lib/animationframes.js
  7. +2 −9 lib/card.js
  8. +2 −2 lib/deck.js
  9. +41 −0 lib/ease.js
  10. +26 −15 lib/modules/bysuit.js
  11. +54 −21 lib/modules/fan.js
  12. +21 −21 lib/modules/intro.js
  13. +25 −14 lib/modules/poker.js
  14. +47 −24 lib/modules/shuffle.js
  15. +45 −26 lib/modules/sort.js
  16. +2 −0 lib/translate.js
  17. +1 −1 views/index.jade
@@ -2,6 +2,8 @@

*
box-sizing: border-box
margin: 0
padding: 0

html, body
height: 100%
@@ -15,7 +17,7 @@ body
text-size-adjust: 100%

#container
position: absolute
position: fixed
top: calc(50% + 1.5rem)
left: 50%
transform: translate3d(-50%, -50%, 0)
@@ -33,10 +35,10 @@ body
background: none
border: 1px solid #fff
outline: none
margin: .25rem
padding: .5rem
margin: .1rem
padding: .4rem
font: inherit
font-size: .875rem
font-size: .75rem
line-height: 1
color: #fff
cursor: pointer

0 comments on commit aa2b545

Please sign in to comment.
You can’t perform that action at this time.