-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDots World Map CSS only
177 lines (156 loc) · 5.06 KB
/
Dots World Map CSS only
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
```
body {
margin: 0;
display: grid;
height: 100vh;
place-items: center;
background-color: #000;
font-size: 12px;
}
.container {
display: grid;
grid-template-columns: repeat(55, 1fr);
grid-template-rows: repeat(35, 1fr);
}
.cell {
width: 1em;
height: 1em;
}
$north-america: 19 20 21 73 74 75 76 77 123 124 127 128 129 130 131 132 177 178
179 181 182 183 184 185 186 187 188 228 229 230 231 232 233 234 237 238 239
240 241 242 243 283 284 285 286 287 288 289 293 294 295 296 297 332 333 334
337 339 340 341 342 343 348 349 350 351 352 387 388 389 390 391 392 393 394
395 396 397 398 399 404 405 406 407 441 442 443 444 445 446 447 448 449 450
451 452 453 454 455 459 460 497 498 499 500 501 502 503 504 505 506 507 509
510 511 514 552 553 554 555 556 557 558 559 560 561 562 564 565 566 607 610
611 612 613 614 615 616 619 620 621 622 666 667 668 669 670 671 672 674 675
676 722 723 724 725 726 727 728 729 730 731 778 779 780 781 782 783 784 785
786 834 835 836 837 838 839 889 890 891 892 893 894 944 945 946 947 948 949
1000 1001 1002 1005 1056 1057 1112 1113 1114 1169;
$south-america: 1225 1226 1227 1228 1229 1281 1282 1283 1284 1285 1335 1336 1337
1338 1339 1340 1341 1342 1390 1391 1392 1393 1394 1395 1396 1397 1446 1447
1448 1449 1450 1451 1502 1503 1504 1505 1506 1557 1558 1559 1560 1612 1613
1614 1666 1667 1668 1721 1722 1776 1777 1831 1832 1887;
$europe: 361 362 415 416 417 469 470 471 472 523 524 525 527 582 580 579 578 632
634 636 631 311 312 251 519 520 686 687 689 688 690 691 692 637 638 583 528
473 418 474 475 365 421 476 477 531 530 529 584 585 586 639 640 641 693 694
695 696 795 796 850 851 797 742 743 744 745 746 747 748 749 750 751 805 804
803 802 801 799 798 800 854 856 857 911;
$africa: 961 962 963 965 1020 1021 1019 1018 1017 1016 1015 1069 1070 1071 1072
1073 1074 1075 1076 1077 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133
1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1235 1236 1237 1238
1239 1240 1241 1242 1243 1244 1293 1294 1295 1296 1297 1298 1348 1349 1350
1351 1352 1404 1405 1406 1407 1459 1460 1461 1462 1514 1515 1516 1518 1573
1569 1570 1571 1624 1625;
$asia: 154 208 209 210 262 263 264 265 314 315 316 317 318 319 320 321 322 323
325 326 369 370 371 372 373 374 375 376 377 378 379 380 381 382 423 424 425
426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 478 479 480 481
482 483 484 485 486 487 488 489 490 491 492 493 494 495 532 533 534 535 536
537 538 539 540 541 542 543 544 545 546 547 548 549 550 587 588 589 590 591
592 593 594 595 596 597 598 599 600 601 603 642 643 644 645 646 647 648 649
650 651 652 653 654 657 658 697 698 699 700 701 702 703 704 705 706 707 708
709 712 752 753 754 755 756 757 758 759 760 761 762 763 764 807 808 809 810
811 812 813 814 815 816 817 818 819 821 859 860 861 862 863 864 865 866 867
868 869 870 871 872 873 876 913 914 916 917 918 919 920 921 922 923 924 925
926 928 930 967 968 969 970 972 973 974 975 976 977 978 979 980 981 982 1022
1023 1024 1025 1026 1027 1029 1030 1031 1034 1035 1036 1037 1079 1080 1081
1085 1089 1090 1135 1144 1145 1200 1202 1203 1255 1256 1257 1311;
$australia: 1206 1262 1263 1317 1369 1370 1372 1422 1423 1424 1425 1426 1427
1428 1476 1477 1478 1479 1480 1481 1482 1483 1531 1532 1533 1534 1535 1536
1537 1538 1586 1587 1590 1591 1592 1645 1646 1650 1705;
@mixin base-dot {
background-color: #222;
font-size: 0.5em;
border-radius: 50%;
}
@each $dot in $north-america {
.cell:nth-child(#{$dot}) {
@include base-dot;
animation: north-america 4s linear infinite;
animation-delay: random(4000) * -1ms;
}
}
@each $dot in $south-america {
.cell:nth-child(#{$dot}) {
@include base-dot;
animation: south-america 3s linear infinite;
animation-delay: random(3000) * -1ms;
}
}
@each $dot in $europe {
.cell:nth-child(#{$dot}) {
@include base-dot;
animation: europe 3s linear infinite;
animation-delay: random(3000) * -1ms;
}
}
@each $dot in $africa {
.cell:nth-child(#{$dot}) {
@include base-dot;
animation: africa 4s linear infinite;
animation-delay: random(4000) * -1ms;
}
}
@each $dot in $asia {
.cell:nth-child(#{$dot}) {
@include base-dot;
animation: asia 5s linear infinite;
animation-delay: random(5000) * -1ms;
}
}
@each $dot in $australia {
.cell:nth-child(#{$dot}) {
@include base-dot;
animation: australia 2s linear infinite;
animation-delay: random(2000) * -1ms;
}
}
@keyframes north-america {
0% {
background-color: #11f801;
}
100% {
background-color: #222;
}
}
@keyframes south-america {
0% {
background-color: cyan;
}
100% {
background-color: #222;
}
}
@keyframes africa {
0% {
background-color: #eaf803;
}
100% {
background-color: #222;
}
}
@keyframes europe {
0% {
background-color: #f80001;
}
100% {
background-color: #222;
}
}
@keyframes asia {
0% {
background-color: orange;
}
100% {
background-color: #222;
}
}
@keyframes australia {
0% {
background-color: #9503c4;
}
100% {
background-color: #222;
}
}
```