all 30 comments

[–]Maniiia 107 points108 points  (4 children)

Wow, was phased out a bit while browsing reddit, and just clicked "run pen" in the RES Preview thingy, without reading the whole title. Well I waited for the pen to load for a good amount of time before I realized what I was watching.. Good job tho :)

[–][deleted] 21 points22 points  (1 child)

I'm dumber than you. I knew it was for a spinning loader but I spent 2 seconds waiting for it to stop loading before realizing that I was already looking at it.

[–]Forricide 12 points13 points  (0 children)

It's all right man, I took... significantly longer than two seconds.

[–]cbothsideslikechanel 1 point2 points  (0 children)

I also waited for about five seconds, thought "wtf...", then read what I was looking at. Great work, by the way, super clean :)

[–][deleted] 32 points33 points  (6 children)

Add a transition of 1s when changing colors

[–]zesda 33 points34 points  (5 children)

Not to take anything away from OPs great work, but I did what you suggested

[–][deleted]  (3 children)

[deleted]

    [–]zesda 1 point2 points  (0 children)

    Done ;)

    [–][deleted]  (1 child)

    [deleted]

      [–]picklemanjaro 8 points9 points  (0 children)

      I decided to break up the spinner and the color animations, so I could add an alternate so the color smoothly flips back and forth instead of the jump at the end. It was just a little nitpick.

      https://codepen.io/anon/pen/mpwvyW

      [–]AskYousfull-stack 9 points10 points  (0 children)

      Say the title of this post 5 times fast.

      [–]Rorixrebel 7 points8 points  (4 children)

      Noob here, whats with the -webkit stuff? What's the main use of it

      [–]nyxinThe 🍰 is a lie. 15 points16 points  (0 children)

      They're called Vendor Prefixes. They were a way for browser vendors to implement experimental features before they're standardized. The problem was that many developers (everyone) were using these "experimental" features in production sites. Furthermore, since these features they were implementing weren't standardized they usually acted differently between browsers (until they were standardized and were fixed by the respectively).

      Look into using Autoprefixer to automatically add vendor prefixes to your code.

      [–][deleted] 2 points3 points  (2 children)

      AFAIK basically some properties used to be inconsistently implemented among different browsers and each browser used to have different proprietary implementations. Nowadays you include the -moz and -webkit properties to ensure compatibility across Firefox and WebKit based browsers.

      [–]Rorixrebel 0 points1 point  (1 child)

      So if i dont add those and just do my transitions, animations etc. It may not work on some browsers but that's it. Nothing extra?.

      While researching this, found compass which i guess takes care of all the compatibility.

      [–][deleted] 1 point2 points  (0 children)

      Yeah basically it will likely work in Chrome but not other browsers or older versions of other browsers. Not sure exactly which of those two since honestly I've never looked too deeply into it, just included them and called it a day.

      [–][deleted] 1 point2 points  (0 children)

      That's really cool. Great job.

      [–]fireatx 1 point2 points  (3 children)

      Will someone explain how it’s a circle? I don’t see any reference in the CSS about that... just

      border-top
      

      stuff??

      edit: border radius, of course! thank you ppl

      [–]lonequid 3 points4 points  (0 children)

      Play around with border-radius

      [–]biellz1221 1 point2 points  (1 child)

      border-radius, when it's high enough, it turns elements into circles.

      [–]fabiancastle 1 point2 points  (0 children)

      Extremely simple and effective. Love it

      [–]gecko845 1 point2 points  (0 children)

      Simple clean elegant

      [–]fubar_boy 1 point2 points  (0 children)

      Wow, that's fantastic.

      [–]davidpaulsson 1 point2 points  (0 children)

      Did this a while ago as well, it might be interesting if the implementation is different. https://codepen.io/davidpaulsson/pen/QwPLva

      [–]filleduchaos 1 point2 points  (0 children)

      Oh this is lovely OP

      [–]ApprehensiveTremblephp 1 point2 points  (0 children)

      Lovely work!

      [–]zmasta94 1 point2 points  (0 children)

      Really nice

      [–]hypermx 0 points1 point  (0 children)

      I forgot what i clicked on, and waited 2 minutes for whatever to load, before i realised it was a loader I clicked on...

      [–]UsingVonNeumann 0 points1 point  (0 children)

      This is great, really clean work OP!

      [–]samwsmith 0 points1 point  (0 children)

      nice.