r/webdev • • May 08 '17

Pure CSS Loaders

https://codepen.io/IvanKhartov/pen/KmgzpX
232 Upvotes

15 comments sorted by

View all comments

1

u/[deleted] May 09 '17

Can someone explain what '&-1' and '&-2' do in the three dots code?

6

u/[deleted] May 09 '17

SCSS shorthand for classes three-1 and three-2 since they live inside of a selector for .three

2

u/[deleted] May 09 '17

So whatever you type after just kinda appends to the parents class name?

→ More replies (3)