< Back to Frontend Friday Folks Index
< Back to Frontend Friday Folks Index
Snake
Visit the official puzzle page (affiliate link!) to play it yourself. If you buy a course from CSSBattle through my affiliate link, I receive a share of it!
Highlighted solution (1164 characters)
1 | |
2 | |
3 | |
4 | |
5 | |
6 | |
7 | |
8 | |
9 | |
10 | |
11 | |
12 | |
13 | |
14 | |
15 | |
16 | |
17 | |
18 | |
19 | |
20 | |
21 | |
22 | |
23 | |
24 | |
25 | |
26 | |
27 | |
28 | |
29 | |
30 | |
31 | |
32 | |
33 | |
34 | |
35 | |
36 | |
37 | |
38 | |
39 | |
40 | |
41 | |
42 | |
43 | |
44 | |
45 | |
46 | |
47 | |
48 | |
49 | |
50 | |
51 | |
52 | |
53 | |
54 | |
This is embarassing - I've only got this to a 99.9% solution and this is the first time we let people from JSCraftCamp into the CSS battles. The idea was to use repeating gradient images to generate the pattern of the snake. Three divs with this repeating background should work, but it ended up being not quite as perfect. At the same time, Arvind solved it with a 100% with multiple divs instead. It's definitely the simpler solution!