Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS spinning CSS 3 icons.

  • This topic is empty.
Viewing 12 posts - 16 through 27 (of 27 total)
  • Author
    Posts
  • #109156
    simpletwist
    Participant
    #109153
    chrisburton
    Participant

    @simpletwist It’s going to look choppy because you cropped it instead of changing the canvas size. This would look better vector based in Illustrator.

    http://codepen.io/anon/pen/EzoiB

    #109244
    simpletwist
    Participant

    @ChristopherBurton I made some custom icons in illustrator, convert them to smart objects in Photoshop and exported them as.PNG’s. Unfortunately, some where I’m going wrong because the spinning icons are looking like a flat tire. Any brief thoughts?
    http://codepen.io/anon/full/tnAKC

    #109246
    Paulie_D
    Member

    I don’t understand the problem…the image is spinning. If you wanted the outer ‘spokes’ thingy to stay still that’s a whole other issue.

    #109247
    chrisburton
    Participant

    That was a pointless step. In Illustrator you can save as SVG, open it in IE, right click and save as PNG. I think your best bet would be to give it a background in AI.

    #109248
    simpletwist
    Participant
    #109250
    chrisburton
    Participant

    That png does not look vectored whatsoever.

    #109251
    Paulie_D
    Member

    What I suspect is that the image is not square and, perhaps, not perfectly centered.
    http://codepen.io/Paulie-D/pen/iGzwL

    #109252
    chrisburton
    Participant

    You’re using a shadow on the circle…gotcha. On white background it looked horribly pixelated.

    #109294
    simpletwist
    Participant

    I’m pretty much failing on this simple task. Here’s what I put together and I do think that the image is not perfect and thus the warped spinning image. I think this CSS is way beyond me. If I’m missing anything that simple please let me know.

    I haven’t used codepen before, but I simply placed this code inside my theme. referencing this URL:
    http://www.ccsdesignhouse.com/three/spinning/



    .spin img {
    display: block;
    background:#333;
    border-radius:40px;
    }
    .spin img:hover {
    -webkit-animation-name: rotate;
    -webkit-animation-duration: 1s;
    -webkit-animation-iteration-count: infinite;
    -webkit-animation-timing-function: linear;
    -moz-animation-name: rotate;
    -moz-animation-duration: 1s;
    -moz-animation-iteration-count: infinite;
    -moz-animation-timing-function: linear;
    animation-name: rotate;
    animation-duration: 1s;
    animation-iteration-count: infinite;
    animation-timing-function: linear;
    }

    @-webkit-keyframes rotate {
    from {-webkit-transform: rotate(0deg);}
    to {-webkit-transform: rotate(360deg);}
    }

    @-moz-keyframes rotate {
    from {-moz-transform: rotate(0deg);}
    to {-moz-transform: rotate(360deg);}
    }

    @keyframes rotate {
    from {transform: rotate(0deg);}
    to {transform: rotate(360deg);}
    }
    #109402
    simpletwist
    Participant

    @ChristopherBurton any thoughts on why the CSS isn’t functioning on my test site?

    http://codepen.io/DesignNinjaNet/pen/yLvrq

    into

    http://www.ccsdesignhouse.com/three/spinning/

    #109406
    chrisburton
    Participant

    Update your html and css to this and see if it works.

Viewing 12 posts - 16 through 27 (of 27 total)
  • The forum ‘CSS’ is closed to new topics and replies.