More CSS Fun: Pure CSS Dumptruck

See it, saw it, hated it…

Let me know what you think: http://codepen.io/geligelu/full/rLPLvO/

7 Likes

How did you do this? lol

With 12 HTML elements + CSS :wink:

1 Like

I’ve just started but can you show me?

Hey…this is interesting and very creative, indeed :+1:

I’m going to read entire CSS code, but can give me heads up about the click handling without using JS?

@typicaljoe111

Hey…this is interesting and very creative, indeed :+1:

I’m going to read entire CSS code, but can give me heads up about the click handling without using JS?

It is done by the :active selector, a CSS pseudo-class.

1 Like

Oh, never knew :active worked on div as well. I thought it only worked on clickable elements like a and button etc. :slight_smile:

Thanks for info.

Tip: just click on the link. It will bring you to Codepen where you can change the view and see all the code. There’s no need to ask “show me” whenever it’s a Codepen or Github link.

Ah I yes I didn’t know that, thank you!