Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Juha Lindstedt
    @pakastin
    they all share :before and :after
    Jan Segre
    @jansegre
    yes! doh!
    Juha Lindstedt
    @pakastin
    ;)
    Jan Segre
    @jansegre
    ok, macroing that change...
    Juha Lindstedt
    @pakastin
    sublime multicursor..? :P
    Cmd + D ;)
    Jan Segre
    @jansegre
    vim
    Juha Lindstedt
    @pakastin
    you're hardcore
    Jan Segre
    @jansegre
    heh
    1:45 ->
    Jan Segre
    @jansegre
    hmmm, it doesn't work because it generates .card:after.rank2 instead of .card.rank2:after
    Juha Lindstedt
    @pakastin
    oh, but isn't that the same?
    Jan Segre
    @jansegre
    and it confuses the the :after selector
    Juha Lindstedt
    @pakastin
    maybe not the most semantic..
    Jan Segre
    @jansegre
    I thought it would, but at least Firefox doesn't render it
    Juha Lindstedt
    @pakastin
    ok
    fair enough :)
    do you know about :before & :after performance? I've never used them
    less job for JS at least..
    Jan Segre
    @jansegre
    not much, I never heard about it being bad
    Juha Lindstedt
    @pakastin
    ok
    Jan Segre
    @jansegre
    I'll make a pull request then
    Juha Lindstedt
    @pakastin
    :+1:
    I noticed a weird issue today: it's slower to animate the backside than frontside..
    that's so strange, because there's only small SVG on the back and on the front there is big SVG + text
    maybe repeating SVG background is somehow slow, I don't know..
    Jan Segre
    @jansegre
    hmmm, maybe because it's the background is repeat? but that's strange anyway
    Juha Lindstedt
    @pakastin
    yeah, I'll try make that a single SVG
    Jan Segre
    @jansegre
    at one point I cropped the backside from the same lib that has the faces, if you want you can try that
    Juha Lindstedt
    @pakastin
    I don't like the design :)
    I will do that anyway, because there is now box-shadow, which is always kinda slow to render..
    Jan Segre
    @jansegre
    heh, ok =)
    but what would replace the box-shadow? no shadow or an SVG gradient?
    Juha Lindstedt
    @pakastin
    I mean I'd design the whole backside with SVG
    one SVG
    Juha Lindstedt
    @pakastin
    I changed backside to PNG now, works really fast - even in mobile!
    Also those new CSS styles seems to work great!
    Juha Lindstedt
    @pakastin
    Now even the "winning" mode works as it should be (click all aces in a row).. ;)
    Juha Lindstedt
    @pakastin
    card.animateTo() -method added!
    parameters: {delay, duration, x, y, rot, ease, onStart, onProgress, onComplete}
    Juha Lindstedt
    @pakastin

    here's also a simple jsfiddle example: http://jsfiddle.net/x0gjood1/

    have fun! ;)

    Sir_Teabeg
    @STeabeg_twitter
    Hi I was wondering If the new version had jokers?
    Juha Lindstedt
    @pakastin
    actually probably not yet.. 🤔
    srirahdirs
    @srirahdirs
    Hello @pakastin Please share me the multiplayer card game code....
    wolfcat007
    @wolfcat007_twitter
    @pakastin I too would like to get the multiplayer card game code. I'm only attempting to build a home game version during this covid-19 stuff. Not looking to sell.
    Juha Lindstedt
    @pakastin

    I will open source it. If you want private access before that, please send me PM with your Github user name: https://m.me/pakastin or http://wa.me/00358504924565

    Thanks!

    Btw. I just activated Github Discussions:
    https://github.com/deck-of-cards/deck-of-cards/discussions

    Have fun!