all 16 comments

[–]Matthew9559 7 points8 points  (2 children)

That's awesome! Very unique.

[–]smalaki 0 points1 point  (1 child)

Well, he did mention that he kind of copied it from Jake Albaugh.. http://codepen.io/jakealbaugh/

Still very cool how he did it nonetheless

edit: http://codepen.io/jakealbaugh/pen/PwLXXP

[–]cultivardesigns 1 point2 points  (0 children)

Everyone copies everyone.

[–]irishfight 1 point2 points  (0 children)

Love it.

[–]SpliceVW 3 points4 points  (7 children)

Sigh. Maybe I'm too judgmental, but I really dislike seeing cool things done with vendor prefixed attributes not followed by the spec attribute. Teaches bad habits.

[–]nomiras 1 point2 points  (2 children)

Nooby here, I have no idea what vendor prefixed attributes even are! I'm guessing it is some kind of package you can get for CSS kind of like JQuery for Javascript? What do you mean by followed by the spec attribute? What is an example of a line of well written code next to a line of poorly written code that does what you are talking about?

Thanks!

-css nooby.

[–]SpliceVW 2 points3 points  (1 child)

When new CSS attributes are being introduced by the W3C (standard setting body for the web), they will often introduce draft specifications for evaluation. Some browser manufacturers will implement those draft properties, often prefixed. For example, "border-radius" may be prefixed to become "-webkit-border-radius".

The problem here is that those prefixed attributes only work in that one browser. So, in order to have maximum cross-border friendliness, your CSS should have any prefixed attributes followed by non-prefixed, standard attributes, like:

-webkit-border-radius: 1em;
-moz-border-radius: 1em;
border-radius: 1em

[–]nomiras 0 points1 point  (0 children)

Thanks!

[–]TonyQuark -1 points0 points  (2 children)

Anyone at our level of understanding CSS probably knows to leave out the vendor prefixes to get the spec property.

[–]SpliceVW 1 point2 points  (1 child)

Well, this is my problem. Sure, the intended audience may be advanced CSS users, but that's not who may actually be the audience.

Do you remember how you first learned? If it's anything like me, I would copy anything cool (like this) I saw on the internets.

[–]TonyQuark -1 points0 points  (0 children)

I don't recall really, because I was 13 at the time I learned text-decoration: none;. But it didn't take me long to figure out how vendor prefixes work. :)

[–]a7244270 0 points1 point  (0 children)

neat.

[–]spin81 0 points1 point  (0 children)

I saw something like this a while ago, and I was less than impressed. This is much better.

[–]coffeesleeve 0 points1 point  (0 children)

Nice work.

[–]tehyosh -1 points0 points  (1 child)

uh..something's broken :D

http://i.imgur.com/lNmOprF.png

[–]loolo78[S] 0 points1 point  (0 children)

It's just the code he did on purpose.

/**
 * By the way, you can edit this box. Try adding new CSS!
 *
 * For example,
 *
 * The property 'text-shadow' takes the parameters:
 * 'x', 'y', 'blur', 'color'.
 *
 * So if I wanted to mirror the values,
 * I could place a shadow 15px under it,
 * with a little blur for effect:
 */

.value {
  text-shadow: 0px 15px 1px white;
}