loading...

Discussion on: How to add loader in the website in a few seconds 😎

Collapse
aleksandrhovhannisyan profile image
Aleksandr Hovhannisyan

I noticed in some cases you used .spinner:before and .spinner:after instead of .spinner::before and .spinner::after for the pseudo-elements. I think you need to use double colons since a single colon is reserved for pseudo-classes, like :focus or :hover.

Collapse
atulcodex profile image
Atul Prajapati Author

Okay hmm interesting 😲 I will try thanks for your opinion 🌷

Collapse
danspratling profile image
Dan Spratling

The logic is correct Aleksandr, but in practice this is rarely needed. Most people just use : for everything. I've never seen a situation where using ::before worked and :before didn't.

Thread Thread
aleksandrhovhannisyan profile image
Thread Thread
atulcodex profile image
Thread Thread
atulcodex profile image
Atul Prajapati Author

You are right brother 👋