Animated Adam Whitcroft's awesome Climacons with CSS. I was inspired by Forecast.io's animated weather icons, but wanted to achieve the same results without canvas.
This Pen is a fork of Noah Blon 's Pen SVG Icons Animated with CSS .
Agreed, VERY awesome!
I love this. The markup/CSS is pretty hefty, but this is very cool.
Thanks guys! I agree that the markup and CSS is hefty from a management standpoint, but you are looking at 80+ icons on one page. In terms of size, for example I compressed the sun to ~5k which is pretty impressive for an animated, resolution independent image I think.
@NoahBlon Wuao Noah, that's the best clima icons ever. And I totally love the design. Nothing to say, just brillant.
This is pretty damn cool! One quesiton, how did you convert the icons to SVG? Did you do it with Ai?
@peduarte: Yes, I used Illustrator. The original icon actually came with an SVG format, but I did have to release the compound paths, create clipping paths, and resize the artboards to get this to work. Planning to write up a tutorial once I work through everything.
Brilliant. May I use these for a hackathon project? I'll give you due credit, of course. :)
@achalv Absolutely! Would love to see what you come up with.
Ok, I see how this is done. Very nice. :)
It'd be nice if we could attach add/removeClass to these on events. jQuery doesn't provide anything out of the box for this and other implementations either ignore the keyframe animations (jQueryUI addClass) or won't addClass to SVG elements.
@corysimmons Thanks Cory! Saw your demo, awesome work.
I've added classes to a wrapper and animated from there:
Great job. I have integrated them into my WordPress weather plugin http://wordpress.org/plugins/wp-cloudy/
This is VERY sleek. Great work!
Really cool demo @noahblon. I'm searching a solution for an issue I also verified in your demo and maybe you have something in mind though.
CSS transform-origin applied to svg elements doesn't work well on FF browser. It's evident on the icons with rotate transform for example, like the two first ones.
If you know something or have something (some trick) in mind, please let me know (@elrumordelaluz).
// I think there is a bug opened on FF for the transform-origin in %
@elrumordelaluz You're right, transform origin in SVG doesn't work in FF, so the origin is the top left corner of the viewbox. Here's a demo I did with a correction for FF: http://codepen.io/noahblon/pen/DlvhJ. What you need to do is wrap elements in a group tag and use translate to move that group's upper left corner to the center of the document Then, you translate elements inside of the group toyour wrapping group's upper left corner. In this way, you've mimicked placing the transform origin in the center of the document. It sucks so I never bothered.. hoping FF will fix it soon!
thanks! @noahblon yes, I also saw this correction here. The ideal is solve this without modif the markup because if I have lot of svg's to apply it. It sucks that on some things Webkit works different that Gecko's browsers. Thanks again. Hoping will fix asap!
@elrumordelaluz I think it would make sense for the default transform-origin value to be the center so that it works the same as HTML. Its pretty confusing otherwise.
Probably one of the best projects on Codepen! #respect
Hi, I downloaded your amazing icons but local version on my computer doesn't works ;/
Do you have any solutions?
Hi @wolny92! Hard to debug without knowing more, but my guess is that the css needs to be prefixed. This demo uses a css prefixing tool provided by Codepen, and you can see the prefixed CSS by clicking view output.
Nice work! Do you allow these to be used in commercial projects?
@zillions yep! The code is under the MIT license and please credit the original designer of the icons: Adam Whitcroft. http://adamwhitcroft.com/climacons/
Hey Noah, nice work! Years later this is still bomb.
Excuse me if I'm naive my experience with animated SVG icons is limited to today :P but from what I'm seeing I don't think this works on Android browser?
Hey noah! Brilliant job on the icons! I hope you dont mind me using it for a personal project of mine. Credits will be given to your icons of course.
@oninross Hi, I am really impressed with animated SVG icons, I would like to use this for commercial purpose.
I will surely give credits of your, can I use it for commercial purpose ?
Thanks in advance !
Very nice work!!
nice work. however, on safari v11 (also on firefox) the sun / moon / snowflake animation is broken. i guess due to multiple transform-origin statements, the rotation has a weird anchor point. would u mind, checking out this issue? :)
Need to know how to enable it? Go here.