10个造型奇特的css3进度条(有的html被编辑器转义了,上面的代码还是OK的)。。。转载
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 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 | < div id="caseVerte"> < div id="case1"></ div > < div id="case2"></ div > < div id="case3"></ div > < div id="case4"></ div > < div id="case5"></ div > < div id="case6"></ div > < div id="load"> < p >loading ...</ p > </ div > </ div > < div id="caseBleu"> < div id="case1"></ div > < div id="case2"></ div > < div id="case3"></ div > < div id="case4"></ div > < div id="case5"></ div > < div id="case6"></ div > < div id="load"> < p >loading ...</ p > </ div > </ div > < div id="caseRouge"> < div id="load"> < p >loading ...</ p > </ div > < div id="top"></ div > < div id="left"></ div > < div id="right"></ div > </ div > < div id="caseMarron"> < div id="boule"></ div > < div id="load"> < p >loading ...</ p > </ div > </ div > < div id="caseViolette"> < div id="cercle"> < div id="cercleCache"></ div > </ div > < div id="load"> < p >loading</ p > </ div > < div id="point"></ div > </ div > < div id="caseBlanche"> < div id="rond"> < div id="test"></ div > </ div > < div id="load"> < p >loading</ p > </ div > </ div > < div id="casePourpre"> < div id="load"> < p >loading</ p > </ div > < div id="vague"> < div id="vague1"></ div > < div id="vague2"></ div > < div id="vague3"></ div > < div id="vague4"></ div > < div id="vague5"></ div > < div id="vague6"></ div > </ div > </ div > < div id="caseVerteClaire"> < div id="transform"> < div id="transform1"></ div > < div id="transform2"></ div > < div id="transform3"></ div > </ div > < div id="load"> < p >loading</ p > </ div > </ div > < div id="caseGrise"> < div id="progress"> < div id="charge"></ div > </ div > < div id="load"> < p >loading</ p > </ div > </ div > < div id="caseMarronFonce"> < div id="spinner"></ div > </ div > < style > #caseVerte { background-color : #30bf82; height : 140px; width : 150px; padding-top : 10px; float :left; } #caseBleu { background-color : #40dbff; height : 140px; width : 150px; padding-top : 10px; float : left; } #caseRouge { background-color : #bf3037; height : 140px; width : 150px; padding-top : 10px; float : left; position : relative; } #caseMarron { background-color : #ffa773; height : 140px; width : 150px; padding-top : 10px; float : left; position : relative; } #caseViolette { background-color : #592780; height : 140px; width : 150px; padding-top : 10px; float : left; position : relative; } #caseBlanche { background-color : #C2C2C2; height : 140px; width : 150px; padding-top : 10px; float : left; position : relative; } #casePourpre { background-color : #422c83; height : 140px; width : 150px; padding-top : 10px; float : left; position : relative; } #caseVerteClaire { background-color : #C9F76F; height : 140px; width : 150px; padding-top : 10px; float : left; position : relative; } #caseGrise { background-color : #222222; height : 140px; width : 150px; padding-top : 10px; float : left; position : relative; } #caseMarronFonce { background-color : #FFEC73; height : 140px; width : 150px; padding-top : 10px; float : left; position : relative; } #caseVerte #load { color : #fbfbfb; font-family : calibri; text-align : center; } #caseBleu #load { color : #0086a6; font-family : calibri; text-align : center; } #caseRouge #load { color : #ff737a; font-family : calibri; text-align : center; margin-top : 50px; } #caseMarron #load { color : #bf6530; font-family : calibri; text-align : center; margin-top : 50px; } #caseViolette #load { color : #D8A6FF; font-family : calibri; text-align : center; margin-top : 100px; } #caseBlanche #load { color : #fff; font-family : calibri; text-align : center; position : absolute; top : 42px; left :42px; } #casePourpre #load { color : #886ed7; font-family : calibri; text-align : center; position : absolute; top : 42px; left :42px; } #caseVerteClaire #load { color : #444444; font-family : calibri; text-align : center; position : absolute; top : 42px; left :42px; } #caseGrise #load { color : #222; font-family : calibri; text-align : center; position : relative; top : 42px; font-size : 11px; } /****DEBUT CASE 1****/ #caseVerte #case1 { height : 10px; width : 100px; background-color : #fbfbfb; animation : case1 2.25s infinite; -webkit-animation : case1 2.25s infinite; } #caseBleu #case1 { height : 10px; width : 100px; background-color : #0086a6; animation : case1 2.25s infinite; -webkit-animation : case1 2.25s infinite; } @-webkit-keyframes case1 { 0% {width : 0%;} 50% {width : 90px;} 100% {width : 0%;} } @keyframes case1 { 0% {width : 0%;} 50% {width : 90px;} 100% {width : 0%;} } /****FIN CASE 1****/ /****DEBUT CASE 2****/ #caseVerte #case2 { height : 10px; width : 10px; background-color : #fbfbfb; animation : case2 2s infinite; -webkit-animation : case2 2s infinite; } #caseBleu #case2 { height : 10px; width : 10px; background-color : #0086a6; animation : case2 2s infinite; -webkit-animation : case2 2s infinite; } @-webkit-keyframes case2 { 0% {width : 0%;} 50% {width : 100px;} 100% {width : 0%;} } @keyframes case2 { 0% {width : 0%;} 50% {width : 100px;} 100% {width : 0%;} } /****FIN CASE 2****/ /****DEBUT CASE 3****/ #caseVerte #case3 { height : 10px; width : 10px; background-color : #fbfbfb; animation : case3 1.75s infinite; -webkit-animation : case3 1.75s infinite; } #caseBleu #case3 { height : 10px; width : 10px; background-color : #0086a6; animation : case3 1.75s infinite; -webkit-animation : case3 1.75s infinite; } @-webkit-keyframes case3 { 0% {width : 0%;} 50% {width : 95px;} 100% {width : 0%;} } @keyframes case3 { 0% {width : 0%;} 50% {width : 95px;} 100% {width : 0%;} } /****FIN CASE 3****/ /****DEBUT CASE 4****/ #caseVerte #case4 { height : 10px; width : 10px; background-color : #fbfbfb; animation : case3 2.5s infinite; -webkit-animation : case3 2.5s infinite; } #caseBleu #case4 { height : 10px; width : 10px; background-color : #0086a6; animation : case3 2.5s infinite; -webkit-animation : case3 2.5s infinite; } @-webkit-keyframes case4 { 0% {width : 0%;} 50% {width : 80px;} 100% {width : 0%;} } @keyframes case4 { 0% {width : 0%;} 50% {width : 80px;} 100% {width : 0%;} } /****FIN CASE 4****/ /****DEBUT CASE 5****/ #caseVerte #case5 { height : 10px; width : 10px; background-color : #fbfbfb; animation : case3 1.5s infinite; -webkit-animation : case3 1.5s infinite; } #caseBleu #case5 { height : 10px; width : 10px; background-color : #0086a6; animation : case3 1.5s infinite; -webkit-animation : case3 1.5s infinite; } @-webkit-keyframes case5 { 0% {width : 0%;} 50% {width : 105px;} 100% {width : 0%;} } @keyframes case5 { 0% {width : 0%;} 50% {width : 105px;} 100% {width : 0%;} } /****FIN CASE 5****/ /****DEBUT CASE 6****/ #caseVerte #case6 { height : 10px; width : 10px; background-color : #fbfbfb; animation : case3 5s infinite; -webkit-animation : case3 5s infinite; } #caseBleu #case6 { height : 10px; width : 10px; background-color : #0086a6; animation : case3 5s infinite; -webkit-animation : case3 5s infinite; } @-webkit-keyframes case6 { 0% {width : 0%;} 50% {width : 75px;} 100% {width : 0%;} } @keyframes case6 { 0% {width : 0%;} 50% {width : 75px;} 100% {width : 0%;} } /****FIN CASE 6****/ /****DEBUT TOP****/ #top { height : 10px; width : 10px; border-radius : 50%; background-color : #ff737a; position : absolute; top : 10px; left : 65px; animation : turnTop 2s infinite; -webkit-animation : turnTop 2s infinite; } @keyframes turnTop { 0% {top : 10px;} 50% {top : 40px;} 100% {top : 10px;} } @-webkit-keyframes turnTop { 0% {top : 10px;} 50% {top : 40px;} 100% {top : 10px;} } /****FIN TOP****/ /****DEBUT LEFT****/ #left { height : 10px; width : 10px; border-radius : 50%; background-color : #ff737a; position : absolute; bottom : 10px; left : 10px; animation : turnLeft 2s infinite; -webkit-animation : turnLeft 2s infinite; } @keyframes turnLeft { 0% {bottom : 10px; left : 10px;} 50% {bottom : 50px; left : 40px;} 100% {bottom : 10px; left : 10px;} } @-webkit-keyframes turnLeft { 0% {bottom : 10px; left : 10px;} 50% {bottom : 50px; left : 40px;} 100% {bottom : 10px; left : 10px;} } /****FIN LEFT****/ /****DEBUT RIGHT****/ #right { height : 10px; width : 10px; border-radius : 50%; background-color : #ff737a; position : absolute; bottom : 10px; right : 10px; animation : turnRight 2s infinite; -webkit-animation : turnRight 2s infinite; } @keyframes turnRight { 0% {bottom : 10px; right : 10px;} 50% {bottom : 50px; right : 40px;} 100% {bottom : 10px; right : 10px;} } @-webkit-keyframes turnRight { 0% {bottom : 10px; right : 10px;} 50% {bottom : 50px; right : 40px;} 100% {bottom : 10px; right : 10px;} } /****FIN RIGHT****/ /****DEBUT BOULE****/ #boule { height : 10px; width : 10px; position : absolute; top : 80px; left : 10px; background-color : #bf6530; border-radius : 50%; animation : boule 2s infinite; -webkit-animation : boule 2s infinite; } @keyframes boule { 0% {left : 10px;opacity : 0;} 50% {height : 20px; width : 20px; opacity : 1;} 100% {left : 120px; opacity : 0; height : 10px; width : 10px;} } @-webkit-keyframes boule { 0% {left : 10px;opacity : 0;} 50% {height : 20px; width : 20px; opacity : 1;} 100% {left : 120px; opacity : 0; height : 10px; width : 10px;} } /****FIN BOULE****/ /****DEBUT CERCLE****/ #cercle { height : 50px; width : 50px; position : absolute; top : 45px; left : 45px; border-radius : 50%; background : linear-gradient(#D8A6FF,#FFECEE); animation : turnCercle 2s infinite; -webkit-animation : turnCercle 5s infinite; animation-timing-function : ease-in-out; -webkit-animation-timing-function : ease-in-out; } @-webkit-keyframes turnCercle { 0% {-webkit-transform : rotate(0deg);} 100% {-webkit-transform : rotate(10080deg);} } @keyframes turnCercle { 0% {transform : rotate(0deg);} 100% {transform : rotate(10080deg);} } #cercleCache { height : 40px; width : 40px; position : absolute; border-radius : 50%; background-color : #592780; z-index : 5; } /****FIN CERCLE****/ /****DEBUT POINT****/ #point { height : 2px; width : 2px; position : relative; top : -22px; left : 96px; border-radius : 50%; background-color : #D8A6FF; animation : point 1.5s infinite; -webkit-animation : point 1.5s infinite; animation-timing-function : linear; -webkit-animation-timing-function : linear; } @-webkit-keyframes point { 0% {left : 96px; opacity : 0;} 5% {left : 96px; opacity : 1;} 15% {left : 96px; opacity : 0;} 30% {left : 99px; opacity : 0;} 45% {left : 99px; opacity : 1;} 60% {left : 99px; opacity : 0;} 75% {left : 102px; opacity : 0;} 90% {left : 102px; opacity : 1;} 100% {left : 102px; opacity : 0;} } @keyframes point { 0% {left : 96px; opacity : 0;} 5% {left : 96px; opacity : 1;} 15% {left : 96px; opacity : 0;} 30% {left : 99px; opacity : 0;} 45% {left : 99px; opacity : 1;} 60% {left : 99px; opacity : 0;} 75% {left : 102px; opacity : 0;} 90% {left : 102px; opacity : 1;} 100% {left : 102px; opacity : 0;} } /****FIN POINT****/ /****DEBUT TEST****/ #test { height : 10px; width : 10px; position : absolute; background-color : #fff; border-radius : 50%; top : 0px; left : 10px; } #rond { height : 100px; width : 100px; border : 1px solid #fff; border-radius : 50%; position :absolute; top : 20px; left : 15px; animation : rond 2s infinite; -webkit-animation : rond 2s infinite; } @keyframes rond { 0% {transform : rotate(0deg);} 100% {transform : rotate(360deg);} } @-webkit-keyframes rond { 0% {-webkit-transform : rotate(0deg);} 100% {-webkit-transform : rotate(360deg);} } /****FIN TEST****/ /****DEBUT VAGUE****/ #vague { position : absolute; top : 72px; left : 20px; } #vague1 { height : 5px; width : 5px; background-color : #886ed7; float : left; animation : vague1 2.5s infinite; -webkit-animation : vague1 2.5s infinite; } @-webkit-keyframes vague1 { 0% {height : 5px;} 50% {height : 30px;} 100% {height : 5px;} } @keyframes vague1 { 0% {height : 5px;} 50% {height : 30px;} 100% {height : 5px;} } #vague2 { height : 5px; width : 5px; background-color : #886ed7; float : left; animation : vague2 2.5s infinite; -webkit-animation : vague2 2.5s infinite; animation-delay : 0.5s; -webkit-animation-delay : 0.5s; } @-webkit-keyframes vague2 { 0% {height : 5px;} 50% {height : 30px;} 100% {height : 5px;} } @keyframes vague2 { 0% {height : 5px;} 50% {height : 30px;} 100% {height : 5px;} } #vague3 { height : 5px; width : 5px; background-color : #886ed7; float : left; animation : vague3 2.5s infinite; -webkit-animation : vague3 2.5s infinite; animation-delay : 1s; -webkit-animation-delay : 1s; } @-webkit-keyframes vague3 { 0% {height : 5px;} 50% {height : 30px;} 100% {height : 5px;} } @keyframes vague3 { 0% {height : 5px;} 50% {height : 30px;} 100% {height : 5px;} } #vague4 { height : 5px; width : 5px; background-color : #886ed7; float : left; animation : vague4 2.5s infinite; -webkit-animation : vague4 2.5s infinite; animation-delay : 1.5s; -webkit-animation-delay : 1.5s; } @-webkit-keyframes vague4 { 0% {height : 5px;} 50% {height : 30px;} 100% {height : 5px;} } @keyframes vague4 { 0% {height : 5px;} 50% {height : 30px;} 100% {height : 5px;} } #vague5 { height : 5px; width : 5px; background-color : #886ed7; float : left; animation : vague5 2.5s infinite; -webkit-animation : vague5 2.5s infinite; animation-delay : 2s; -webkit-animation-delay : 2s; } @-webkit-keyframes vague5 { 0% {height : 5px;} 50% {height : 30px;} 100% {height : 5px;} } @keyframes vague5 { 0% {height : 5px;} 50% {height : 30px;} 100% {height : 5px;} } #vague6 { height : 5px; width : 5px; background-color : #886ed7; float : left; animation : vague6 2.5s infinite; -webkit-animation : vague6 2.5s infinite; animation-delay : 2.5s; -webkit-animation-delay : 2.5s; } @-webkit-keyframes vague6 { 0% {height : 5px;} 50% {height : 30px;} 100% {height : 5px;} } @keyframes vague6 { 0% {height : 5px;} 50% {height : 30px;} 100% {height : 5px;} } /****FIN VAGUE****/ /****DEBUT TRANSFORM****/ #tranform { position : absolute; top : 85px; left : 30px; } #transform1 { height : 30px; width : 30px; border-radius : 50%; background-color : #444444; position : absolute; top : 85px; left : 15px; opacity : 0; animation : transform 4s infinite; -webkit-animation : transform 4s infinite; } #transform2 { height : 30px; width : 30px; border-radius : 50%; background-color : #444444; position : absolute; top : 85px; left : 54px; opacity : 0; animation : transform 4s infinite; -webkit-animation : transform 4s infinite; animation-delay : 0.5s; -webkit-animation-delay : 0.5s; } #transform3 { height : 30px; width : 30px; border-radius : 50%; background-color : #444444; position : absolute; top : 85px; left : 94px; opacity : 0; animation : transform 4s infinite; -webkit-animation : transform 4s infinite; animation-delay : 1s; -webkit-animation-delay : 1s; } @-webkit-keyframes transform { 0% {opacity : 0;} 25% {opacity : 1;} 50% {opacity : 0;} 75% {opacity : 1;} 100% {opacity : 0;} } @keyframes transform { 0% {border-radius : 0px; opacity : 0;} 20% {border-radius : 0px; opacity : 1;} 40% {border-radius : 0px; opacity : 0;} 60% {border-radius : 50%; opacity : 0;} 80% {border-radius : 50%; opacity : 1;} 100% {border-radius : 50%; opacity : 0;} } /****FIN TRANSFORM****/ /****DEBUT PROGRESS****/ #progress { height : 10px; width : 120px; position : absolute; top : 60px; left : 10px; box-shadow : 0px 0px 10px #111111 inset; } #charge { height : 10px; width : 120px; position : absolute; top : 0px; left : 0px; background-color : #C9F76F; margin : 0px; animation : charge 7s infinite; -webkit-animation : charge 7s infinite; box-shadow : 0px 0px 5px #222 inset; } @-webkit-keyframes charge { 0% {width : 0px;} 100% {width : 100%;} } @keyframes charge { 0% {width : 0px;} 100% {width : 100%;} } /****FIN PROGRESS****/ /****DEBUT SPINNER****/ #spinner { height : 40px; width : 40px; /*background-color : #61615E;*/ border : 2px solid #61615e; border-left-color : transparent; border-right-color : transparent; border-radius : 50%; animation : spin 2s infinite; -webkit-animation : spin 2s infinite; } @-webkit-keyframes spin { 0% {-webkit-transform : rotate(0deg);} 50% {-webkit-transform : rotate(360deg);} 100% {-webkit-transform : rotate(0deg);} } @keyframes spin { 0% {transform : rotate(0deg);} 50% {transform : rotate(360deg);} 100% {transform : rotate(0deg);} } /****FIN SPINNER****/ </ style > |
loading ...
loading ...
loading ...
loading ...
loading
loading
loading
loading
loading
额,写上这一段的时候主要还是不明白,好多点反对是对我的随笔不满还是对我随笔质量的不满。。实际上我更多的把这个博客当成个人动态玩的。。。所以还是比较随意的。。。当然如果觉得写得有问题可以在下方评论写出改进建议。。。我会虚心接受,顺便可以知道自己的不足点。。。
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 10年+ .NET Coder 心语,封装的思维:从隐藏、稳定开始理解其本质意义
· .NET Core 中如何实现缓存的预热?
· 从 HTTP 原因短语缺失研究 HTTP/2 和 HTTP/3 的设计差异
· AI与.NET技术实操系列:向量存储与相似性搜索在 .NET 中的实现
· 基于Microsoft.Extensions.AI核心库实现RAG应用
· 10年+ .NET Coder 心语 ── 封装的思维:从隐藏、稳定开始理解其本质意义
· 地球OL攻略 —— 某应届生求职总结
· 提示词工程——AI应用必不可少的技术
· Open-Sora 2.0 重磅开源!
· 周边上新:园子的第一款马克杯温暖上架