- This topic is empty.
-
AuthorPosts
-
September 3, 2012 at 1:30 pm #109156
simpletwist
Participant@ChristopherBurton
http://www.ccsdesignhouse.com/three/wp-content/uploads/2012/09/arrow2.png
should fly?
September 3, 2012 at 1:52 pm #109153chrisburton
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.
September 5, 2012 at 11:58 am #109244simpletwist
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/tnAKCSeptember 5, 2012 at 12:06 pm #109246Paulie_D
MemberI 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.
September 5, 2012 at 12:08 pm #109247chrisburton
ParticipantThat 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.
September 5, 2012 at 12:08 pm #109248simpletwist
ParticipantSeptember 5, 2012 at 12:10 pm #109250chrisburton
ParticipantThat png does not look vectored whatsoever.
September 5, 2012 at 12:11 pm #109251Paulie_D
MemberWhat I suspect is that the image is not square and, perhaps, not perfectly centered.
http://codepen.io/Paulie-D/pen/iGzwLSeptember 5, 2012 at 12:16 pm #109252chrisburton
ParticipantYou’re using a shadow on the circle…gotcha. On white background it looked horribly pixelated.
September 5, 2012 at 10:00 pm #109294simpletwist
ParticipantI’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);}
}
September 6, 2012 at 5:15 pm #109402simpletwist
Participant@ChristopherBurton any thoughts on why the CSS isn’t functioning on my test site?
http://codepen.io/DesignNinjaNet/pen/yLvrq
into
September 6, 2012 at 5:21 pm #109406chrisburton
ParticipantUpdate your html and css to this and see if it works.
-
AuthorPosts
- The forum ‘CSS’ is closed to new topics and replies.