DEV Community

Cover image for I made 100 more CSS loaders for your next project
Temani Afif
Temani Afif

Posted on • Updated on

I made 100 more CSS loaders for your next project

not 100, not 200 but 300! Yes, a new collection and a total of 300 CSS loaders.

This time, I am going to rely on more elements to create the loaders ... No, I am joking 😜, still only one <div> per loader, nothing more!

Let's go!


Also available online 👇

css-loaders.com


Table of content


The Classic III

The Dots III

The Hypnotic II

The Bars II

The Spinner III

The last spinner is detailed in a Stack Overflow answer I gave

The Dots vs The Bars

They start as friends but ...

To be continued ...

The Nature

The Time

The Shapes III

The Hungry

The Discord

Someone challenged me so I had to do it.

It's not a perfect replicate but close enough 😁

The Ben

A last one for the fun. I added a click handler to avoid the spoils. Click and wait until the end

A small joke to remind you that even if you use a loader, your website need to be fast 😉 and yes Ben is done with pure CSS, I am not using any image. I know it's crazy...


That's it!

I hope you enjoyed this 3rd collection. If you want more don't forget to ❤🦄! If you have some funny or crazy ideas of loaders you want me to do, leave a comment 👇

I don't do only loaders if you want more fun:

Top comments (70)

Collapse
 
grahamthedev profile image
GrahamTheDev • Edited

Fantastic as always - quick heads up for everyone dont try and view the CSS for “Ben” on your phone - big crash if you do 😜🤣🤣

Collapse
 
afif profile image
Temani Afif

let's see how many Smartphone I will break 😝

Collapse
 
grahamthedev profile image
GrahamTheDev

It is no wonder it crashed my phone, it took about 5 seconds to open on my PC! (while inline, works fine if you open as external pen)

Thread Thread
 
afif profile image
Temani Afif

maybe it's time to change your 2000's PC 😋

Thread Thread
 
grahamthedev profile image
GrahamTheDev

What you think anyone can buy a new PC at the moment? You do know there is a CPU shortage! 🤣

It is that bad that to spec a PC to the same spec as my current one would cost me £500 more than I paid for it....how stupid is that?

Collapse
 
ziizium profile image
Habdul Hazeez

It works fine in Chrome 90 for Android, and my device did not crash as I type this.

Collapse
 
grahamthedev profile image
GrahamTheDev

Of course it works in Android, it’s only iOS and it’s crappy safari browser that can’t handle anything more complicated than 2+2 - half of the loaders don’t work either on iOS as they don’t support the CSS features.

Hence why iOS is my work phone and Android for personal!

Oh and the speed issue on PC was because I had Illustrator saving a massive file...so that is embarrassing 😂

Collapse
 
tterb profile image
Brett Stevenson

It didn't totally crash my phone, but I did have to close and reopen my browser to leave this comment...
Please don't tell me not to try jumping off a bridge next 😂

Collapse
 
jjranalli profile image
jj_ranalli • Edited

This is amazing!! Ever thought of making a Glitchy collection?

I'm thinking of Cyberpunk-ish glitch effects, but anything glitchy would be cool imo

Collapse
 
afif profile image
Temani Afif

Yes I am planning some glitch effect in the next collection ;) stay tuned! don't forget to follow to get notified when it will be released

Collapse
 
jjranalli profile image
jj_ranalli

Of course! One more thing comes to mind, ever thought of using Tailwindcss color classes to style your loaders? I ask this as I made a package (Nightwind) that automatically inverts them to create a dark theme. So in this case, you'd have dark-themed loaders for any TailwindCSS website

Not sure if this is something you'd be interested in, but I thought of telling you in case you'd like to experiment with it. (Feel free to reach out to discuss this! Happy to help out if I can)

Thread Thread
 
afif profile image
Temani Afif

not really, I am not a Tailwind fan. IMO, it's one of the worst Framework with his expensive CSS and classes that let people do simple things with complex code. You will notice that for the 1-color loaders I made there is always one value of color to change that will affect the whole loader so we don't really need tailwind for that, we can easily switch the color using an extra class or an inline CSS.

Thread Thread
 
jjranalli profile image
jj_ranalli

I think tailwind has improved a lot over time, but I also understand what you mean. Personally I think it’s a very subjective matter as there are good points that can be made on both sides.

Anyway keep up the great work! Your loaders are really cool ✨

Collapse
 
aleksandrhovhannisyan profile image
Aleksandr Hovhannisyan

Petition to make The Ben the actual loader for Dev.to, lol. @ben

(Love the food and the hourglass, by the way!)

Idea: Create a site where you demo all of these at once.

Collapse
 
afif profile image
Temani Afif

I like the idea of the demo website ;) will plan this shortly

Collapse
 
bbernarddev profile image
Britanney Bernard

Thank you so much! I tried to add it on my site, it still doesn't work. as example. How can I solve it? Do you have any contacts? Any ideas, pals?

Collapse
 
afif profile image
Temani Afif

which one did you add? and how I can see it in the code?

Collapse
 
pablonax profile image
Info Comment hidden by post author - thread only accessible via permalink
Pablo Discobar

Hey, cool job! Let's develop the community together. I wrote an article about free Flutter templates, if you have any products (not necessarily a flutter template) that you would like to share, please submit them on my website and I will add them to my article! - code.market/sign-up/


dev.to/pablonax/free-flutter-templ...

Collapse
 
__manucodes profile image
manu

You are definitely the god of loaders.

You've made 300 loaders so far! (3 posts)

Nice discord loader!!!!
haha liked the ben loader 😜

Collapse
 
afif profile image
Temani Afif

like you said "so far". Still didn't unleash all the CSS powers :p and I am still at one div per loader ;)

Collapse
 
__manucodes profile image
manu

Wait - You're making even more?

Here's discord #2 -
https://media1.tenor.com/images/651dd27f286211ca7bcfc345944119c9/tenor.gif?itemid=17088010

Thread Thread
 
afif profile image
Temani Afif

yes of course, I will not stop at only 300 ;)
that loader is easier :p

Collapse
 
Sloan, the sloth mascot
Comment deleted
Collapse
 
afif profile image
Temani Afif

stop spamming the site with such comment. This behavior can get you a ban

Collapse
 
codemouse92 profile image
Jason C. McDonald

Your loaders are entertaining in and of themselves. Makes me wish my sites were slower. ;)

Collapse
 
jmau111 profile image
jmau111⚡⚡⚡

first!

arf no ^^

Collapse
 
afif profile image
Temani Afif

yes technically the first ;) I can confirm from the notification :p

Collapse
 
derah profile image
Derah

Awesome animations, thanks!

Google.com/photos/about/
can you check out this site on your PC, how can I achieve that particular animation with CSS.

How I love how the pictures animate when I scroll

Collapse
 
afif profile image
Temani Afif

I see no animation there ...

Collapse
 
peterlunch profile image
Peter

Temani an another amazing set! How did you get so good at CSS, I'd love to read what you did to improve.

Collapse
 
afif profile image
Temani Afif

It's a lot of practise (and a lot of time on Stack Overflow). I invite you to start with these two articles:
dev.to/afif/all-you-need-to-know-a...
dev.to/afif/advanced-css-animation...
Most of what I am doing rely on background and animation and I am detailing a lot of stuff there.

I will be writing more in the future for sure.

Collapse
 
peterlunch profile image
Peter

Awesome thanks for the resources. They are going on today’s reading list.

Collapse
 
yyzclyang profile image
鱼依藻常乐

Amazing

Collapse
 
siaust profile image
Simon Aust

So enjoyable to look at these and imagine how they're made. Thanks very much :)

Collapse
 
around25team profile image
Around25

real heroes don't wear capes 🤩 Awesome initiative (although it's impossible to pick a favorite 😆)! proceeding to tweet

Collapse
 
sznroe profile image
Sujan Rai

Ben was Awesome

Some comments may only be visible to logged-in visitors. Sign in to view all comments. Some comments have been hidden by the post's author - find out more