1. <div class="chopsticks"></div>
  2. .chopsticks{
  3. position: absolute;
  4. width: 10px;
  5. height: 250px;
  6. background-color: #bb8855;
  7. left: 50%;
  8. border-radius: 3px;
  9. box-shadow: 0 0 2px 1px rgba(0,0,0,0.1), 0 -5px 1px 0 rgba(0,0,0,0.1) inset;
  10. }
  11. .chopsticks::before{
  12. content: '';
  13. position: absolute;
  14. width: 10px;
  15. height: 250px;
  16. background-color: #bb8855;
  17. left: 15px;
  18. border-radius: 3px;
  19. box-shadow: 0 0 2px 1px rgba(0,0,0,0.1), 0 -5px 1px 0 rgba(0,0,0,0.1) inset;
  20. }

筷子css - 图1

鸡蛋css

  1. <div class="egg"></div>
  2. .egg{
  3. position: absolute;
  4. top: 20px;
  5. left: 35px;
  6. width: 80px;
  7. height: 100px;
  8. z-index: 7;
  9. background-color: #fff;
  10. transform:rotate(20deg);
  11. border-radius: 50%/60% 60% 40% 40%;
  12. }
  13. .egg::before{
  14. content: '';
  15. position: absolute;
  16. top: 30%;
  17. left: 21%;
  18. width: 57%;
  19. height: 51%;
  20. background: #FC0;
  21. border-radius: 50%/56% 60% 41% 44%;
  22. box-shadow: 0 0 1px 1px #f90,0 0 1px 1px rgba(255, 153, 0, 0.5) inset;
  23. }

筷子css - 图2

勺子css

  1. <div class="scoop"></div>
  2. .scoop{
  3. position: absolute;
  4. height: 200px;
  5. width: 20px;
  6. background-color: #bb8855;
  7. left: 50%;
  8. border-radius: 8px;
  9. box-shadow: 0 0 1px 1px rgba(0,0,0,0.1),0 -5px 1px 1px rgba(0,0,0,0.1) inset;
  10. top: 10%
  11. }
  12. .scoop::before{
  13. content: '';
  14. position: absolute;
  15. height: 70px;
  16. width: 59px;
  17. background-color: #bb8855;
  18. left: -94%;
  19. top: -2%;
  20. border-radius: 50%/60% 60% 40% 40%;
  21. box-shadow: 0 0 1px 1px rgba(0,0,0,0.1), 0 -3px 3px 2px rgba(0,0,0,0.1) inset;
  22. }
  23. .scoop::after{
  24. content: '';
  25. position: absolute;
  26. height: 14px;
  27. width: 6px;
  28. background-color: rgba(0,0,0,0.1);
  29. left: 49%;
  30. top: 17%;
  31. border-radius: 50%/68% 53% 40% 40%;
  32. box-shadow: 0 0 10px 8px rgba(0,0,0,0.1);
  33. }

筷子css - 图3

爱心css

  1. <div class="love">LOVE</div>
  2. .love{
  3. position: absolute;
  4. width: 100px;
  5. height: 100px;
  6. background-color: #c03;
  7. left: 40%;
  8. top: 30%;
  9. transform: translate(-50%,-50%) rotate(45deg);
  10. transform: rotate(45deg);
  11. text-align: center;
  12. line-height: 100px;
  13. }
  14. .love::before,.love::after{
  15. content: '';
  16. position: absolute;
  17. width: 100px;
  18. height: 100px;
  19. background-color: #c03;
  20. border-radius: 50%;
  21. left: -50%;
  22. z-index: -1;
  23. }
  24. .love::after{
  25. top: -50%;
  26. left: 0;
  27. }

筷子css - 图4

气泡css

  1. <div class="qipao">气泡</div>
  2. .qipao{
  3. position: absolute;
  4. width: 200px;
  5. height: 100px;
  6. background-color: green;
  7. border-radius: 7px;
  8. top: 20%;
  9. left: 40%;
  10. text-align: center;
  11. line-height: 100px;
  12. }
  13. .qipao::before{
  14. content: '';
  15. position: absolute;
  16. bottom: 0;
  17. left: 50%;
  18. border: 34px solid transparent;
  19. border-top-color: green;
  20. border-bottom: 0;
  21. border-left: 0;
  22. margin: 0 0 -34px -17px;
  23. }

筷子css - 图5

缺四角css

  1. <div class="angle">缺四角</div>
  2. .angle{
  3. position: absolute;
  4. width: 200px;
  5. height: 150px;
  6. left: 40%;
  7. top: 20%;
  8. background-color: pink;
  9. text-align: center;
  10. line-height: 150px;
  11. }
  12. .angle{
  13. background:
  14. linear-gradient(45deg,transparent 15px, pink 0) left bottom,
  15. linear-gradient(-45deg,transparent 15px,pink 0) right bottom,
  16. linear-gradient(135deg,transparent 15px,pink 0) left top,
  17. linear-gradient(-135deg,transparent 15px,pink 0) right top;
  18. background-size: 50% 50%;
  19. background-repeat: no-repeat;
  20. }

筷子css - 图6

缺圆角css

  1. <div class="arc">缺圆角</div>
  2. .arc{
  3. position: absolute;
  4. transform: translate(-50%,-50%);
  5. top: 50%;
  6. left: 50%;
  7. width: 200px;
  8. height: 150px;
  9. background-color: pink;
  10. text-align: center;
  11. line-height: 150px;
  12. }
  13. .arc{
  14. background:
  15. radial-gradient(circle at left bottom,transparent 15px,pink 0) left bottom,
  16. radial-gradient(circle at right bottom,transparent 15px,pink 0) right bottom,
  17. radial-gradient(circle at left top,transparent 15px,pink 0) left top,
  18. radial-gradient(circle at right top,transparent 15px,pink 0) right top;
  19. background-size: 50% 50%;
  20. background-repeat: no-repeat;
  21. }

筷子css - 图7

梯形css

  1. <div class="tixing">梯形</div>
  2. .tixing{
  3. position: absolute;
  4. top:50%;
  5. left: 50%;
  6. transform:translate(-50%,-50%);
  7. width: 160px;
  8. padding: 60px;
  9. text-align: center;
  10. color: white;
  11. }
  12. .tixing::before{
  13. content:"";
  14. position: absolute;
  15. top: 0; right: 0; bottom: 0; left: 0;
  16. transform:perspective(40px) scaleY(1.3) rotateX(5deg);
  17. transform-origin: bottom;
  18. background:deeppink;
  19. z-index:-1;
  20. }

筷子css - 图8

圆盘css

  1. <div class="pie">圆盘</div>
  2. .pie{
  3. position: absolute;
  4. transform: translate(-50%,-50%);
  5. top: 50%;
  6. left: 50%;
  7. width: 180px;
  8. height: 180px;
  9. text-align: center;
  10. line-height: 180px;
  11. background-color: pink;
  12. background-image: linear-gradient(to right, transparent 50%, #655 0);
  13. border-radius: 50%;
  14. cursor: pointer;
  15. overflow: hidden;
  16. }
  17. .pie::before{
  18. position: absolute;
  19. content: '';
  20. background-color: inherit;
  21. width: 50%;
  22. height: 100%;
  23. left: 50%;
  24. top: 0;
  25. z-index: -1;
  26. transform-origin: left;
  27. transform: rotate(45deg);
  28. }
  29. .pie:hover::before{
  30. transform: rotate(1000deg);
  31. transition: transform 5s;
  32. }

筷子css - 图9

平行四边形css

  1. <div class="sibianxing">平行四边形</div>
  2. .sibianxing{
  3. position: absolute;
  4. top: 50%;
  5. left: 50%;
  6. transform: translate(-50%,-50%);
  7. width: 200px;
  8. height: 150px;
  9. line-height: 150px;
  10. text-align: center;
  11. }
  12. .sibianxing::before{
  13. content: '';
  14. position: absolute;
  15. z-index: -1;
  16. background-color: pink;
  17. left: 0;right: 0;top: 0;bottom: 0;
  18. transform: skew(.08turn);
  19. }

筷子css - 图10

折角css

  1. <div class="zhejiao">折角</div>
  2. .zhejiao{
  3. position: absolute;
  4. width: 200px;
  5. height: 200px;
  6. transform: translate(-50%,-50%);
  7. top: 50%;
  8. left: 50%;
  9. text-align: center;
  10. line-height: 200px;
  11. background-color: pink;
  12. border-radius: 10px;
  13. background:linear-gradient(-150deg,transparent 1.5em, pink 0);
  14. }
  15. .zhejiao::before{
  16. content: '';
  17. position: absolute;
  18. background: linear-gradient(to left bottom,transparent 50%, rgba(0,0,0,.2) 0, rgba(0,0,0,.4)) 100% 0 no-repeat;
  19. top: 0;
  20. right: 0;
  21. width: 30px;
  22. height: 47px;
  23. border-bottom-left-radius: 10px;
  24. transform: translateY(-20px) rotate(-28deg);
  25. transform-origin: bottom right;
  26. box-shadow: -.2em .2em .3em -.1em rgba(0,0,0,.15);
  27. }

筷子css - 图11

三根线css

  1. <div class="warp">
  2. <div class="one"></div>
  3. <div class="two"></div>
  4. <div class="three"></div>
  5. </div>
  6. .warp{width: 170px;height: 150px;position: relative; margin-left: 50%; margin-top: -15%; transform: translate(-50%,-50%);background-color: pink;}
  7. .one, .two, .three{width: 130px;height: 2px;margin: 0 auto; background-color: white; position: absolute;top: 20%;left: 10%;transition:all 1s;}
  8. .two{top: 50%;}
  9. .three{top: 80%;}
  10. .warp:hover .one{top: 80%;opacity: 0;}
  11. .warp:hover .two{top: 20%;transform: rotate(45deg); transform-origin: left; width: 126px}
  12. .warp:hover .three{transform: rotate(-45deg);transform-origin: left; width: 126px;}

筷子css - 图12

漂浮的云css

  1. <div class="cloud">乌云</div>
  2. .cloud{
  3. position: absolute;
  4. top: 50%;
  5. left: 50%;
  6. transform: translate(-50%,-50%);
  7. width: 150px;
  8. height: 200px;
  9. text-align: center;
  10. background-color: pink;
  11. border-radius: 10px;
  12. }
  13. .cloud::before{
  14. position: absolute;
  15. content: '';
  16. background-color: white;
  17. width: 30px;
  18. height: 30px;
  19. top: 40%;
  20. left: 33%;
  21. z-index: 2;
  22. border-radius: 50%;
  23. transform: translate(-50%,-50%);
  24. box-shadow: 19px 6px 0px 1px white, 14px -13px 0 1px white, 37px -6px 0px -2px white, 52px 4px 0 -4px white, 37px 7px 0 -3px white, 20px -20px #ddd, 38px -12px 0 -1px #ddd, 54px -3px 0 -4px #DDD;
  25. animation: cloud-move 3s ease-in-out infinite;
  26. }
  27. .cloud::after{
  28. content: '';
  29. background-color: rgba(0,0,0,0.6);
  30. position: absolute;
  31. top: 70%;
  32. left: 50%;
  33. width: 50px;
  34. height: 6px;
  35. border-radius: 50%;
  36. transform: translate(-50%,-50%);
  37. animation: shadow 3s ease-in-out infinite;
  38. }
  39. @keyframes cloud-move{
  40. 50%{transform: translate(-50%,-10%)};
  41. 100%{transform: translate(-50%,-50%);};
  42. }
  43. @keyframes shadow{
  44. 50%{transform: translate(-50%,-50%) scale(0.6);background-color: rgba(0,0,0,0.3)}
  45. 100%{transform: translate(-50%,-50%) scale(1);background-color: rgba(0,0,0,0.6)}
  46. }

筷子css - 图13

chrome css

  1. <div class="chrome"></div>
  2. .chrome{
  3. position: absolute;
  4. top: 50%;left: 50%;
  5. width: 180px;height: 180px;
  6. transform: translate(-50%, -50%);
  7. box-shadow:0 0px 4px #999,0 0 2px #ddd inset;
  8. border-radius:50%;
  9. background-image:
  10. radial-gradient(#4FACF5 0%,#2196F3 28%, transparent 28%),
  11. radial-gradient(#fff 33%,transparent 33%),
  12. linear-gradient(-50deg,yellow 34%, transparent 34%),
  13. linear-gradient(60deg,green 34%,transparent 34%),
  14. linear-gradient(176deg,red 34%,transparent 34%),
  15. linear-gradient(360deg,green 34%,transparent 34%),
  16. linear-gradient(261deg,yellow 34%,transparent 34%),
  17. linear-gradient(98deg,red 34%,transparent 34%);
  18. background-position:0 0;
  19. }

筷子css - 图14

乱码的字css

  1. <div class="text-magic" data-word="CSSTextMagic">CSSTextMagic<div class="white"></div><div>
  2. .text-magic{
  3. position: absolute;
  4. top: 50%;left: 50%;
  5. transform: translate(-50%, -50%);
  6. width:300px;
  7. font-size:36px;
  8. font-family:Raleway, Verdana , Arial;
  9. }
  10. .white{
  11. position:absolute;
  12. left:0;
  13. top:15px;
  14. width:100%;
  15. height:3px;
  16. background:#fff;
  17. z-index:4;
  18. animation:whiteMove 3s ease-out infinite;
  19. }
  20. .text-magic:before{
  21. content:attr(data-word);
  22. position:absolute;
  23. top:0;
  24. left:0.5px;
  25. height:0px;
  26. color:rgba(0,0,0,.9);
  27. overflow:hidden;
  28. z-index:2;
  29. animation:redShadow 1s ease-in infinite;
  30. -webkit-filter:contrast(200%);
  31. text-shadow:0.1px 0 0 red;
  32. }
  33. .text-magic:after{
  34. content:attr(data-word);
  35. position:absolute;
  36. top:0;
  37. left:-3px;
  38. height:36px;
  39. color:rgba(0,0,0,.8);
  40. overflow:hidden;
  41. z-index:3;
  42. background:rgba(255,255,255,.9);
  43. animation:redHeight 1.5s ease-out infinite;
  44. -webkit-filter:contrast(200%);
  45. }
  46. @keyframes redShadow{
  47. 20%{
  48. height:32px;
  49. }
  50. 60%{
  51. height:6px;
  52. }
  53. 100%{
  54. height:42px;
  55. }
  56. }
  57. @keyframes redHeight{
  58. 20%{
  59. height:42px;
  60. }
  61. 35%{
  62. height:12px;
  63. }
  64. 50%{
  65. height:40px;
  66. }
  67. 60%{
  68. height:20px;
  69. }
  70. 70%{
  71. height:34px;
  72. }
  73. 80%{
  74. height:22px;
  75. }
  76. 100%{
  77. height:0px;
  78. }
  79. }
  80. @keyframes whiteMove{
  81. 8%{
  82. top:38px;
  83. }
  84. 10%{
  85. top:8px;
  86. }
  87. 12%{
  88. top:42px;
  89. }
  90. 99%{
  91. top:36px;
  92. }
  93. }

筷子css - 图15

Infinity

  1. #infinity {
  2. position: relative;
  3. width: 212px;
  4. height: 100px;
  5. box-sizing: content-box;
  6. }
  7. #infinity:before,
  8. #infinity:after {
  9. content: "";
  10. box-sizing: content-box;
  11. position: absolute;
  12. top: 0;
  13. left: 0;
  14. width: 60px;
  15. height: 60px;
  16. border: 20px solid red;
  17. border-radius: 50px 50px 0 50px;
  18. transform: rotate(-45deg);
  19. }
  20. #infinity:after {
  21. left: auto;
  22. right: 0;
  23. border-radius: 50px 50px 50px 0;
  24. transform: rotate(45deg);
  25. }

筷子css - 图16

RSS Feed

  1. #rss {
  2. width: 20em;
  3. height: 20em;
  4. border-radius: 3em;
  5. background-color: #ff0000;
  6. font-size: 14px;
  7. }
  8. #rss:before {
  9. content: '';
  10. z-index: 1;
  11. display: block;
  12. height: 5em;
  13. width: 5em;
  14. background: #fff;
  15. border-radius: 50%;
  16. position: relative;
  17. top: 11.5em;
  18. left: 3.5em;
  19. }
  20. #rss:after {
  21. content: '';
  22. display: block;
  23. background: #ff0000;
  24. width: 13em;
  25. height: 13em;
  26. top: -2em;
  27. left: 3.8em;
  28. border-radius: 2.5em;
  29. position: relative;
  30. box-shadow:
  31. -2em 2em 0 0 #fff inset,
  32. -4em 4em 0 0 #ff0000 inset,
  33. -6em 6em 0 0 #fff inset
  34. }

筷子css - 图17

奖章

  1. #badge-ribbon {
  2. position: relative;
  3. background: red;
  4. height: 100px;
  5. width: 100px;
  6. border-radius: 50px;
  7. }
  8. #badge-ribbon:before,
  9. #badge-ribbon:after {
  10. content: '';
  11. position: absolute;
  12. border-bottom: 70px solid red;
  13. border-left: 40px solid transparent;
  14. border-right: 40px solid transparent;
  15. top: 70px;
  16. left: -10px;
  17. transform: rotate(-140deg);
  18. }
  19. #badge-ribbon:after {
  20. left: auto;
  21. right: -10px;
  22. transform: rotate(140deg);
  23. }

筷子css - 图18

像素怪

  1. #space-invader {
  2. box-shadow: 0 0 0 1em red,
  3. 0 1em 0 1em red,
  4. -2.5em 1.5em 0 .5em red,
  5. 2.5em 1.5em 0 .5em red,
  6. -3em -3em 0 0 red,
  7. 3em -3em 0 0 red,
  8. -2em -2em 0 0 red,
  9. 2em -2em 0 0 red,
  10. -3em -1em 0 0 red,
  11. -2em -1em 0 0 red,
  12. 2em -1em 0 0 red,
  13. 3em -1em 0 0 red,
  14. -4em 0 0 0 red,
  15. -3em 0 0 0 red,
  16. 3em 0 0 0 red,
  17. 4em 0 0 0 red,
  18. -5em 1em 0 0 red,
  19. -4em 1em 0 0 red,
  20. 4em 1em 0 0 red,
  21. 5em 1em 0 0 red,
  22. -5em 2em 0 0 red,
  23. 5em 2em 0 0 red,
  24. -5em 3em 0 0 red,
  25. -3em 3em 0 0 red,
  26. 3em 3em 0 0 red,
  27. 5em 3em 0 0 red,
  28. -2em 4em 0 0 red,
  29. -1em 4em 0 0 red,
  30. 1em 4em 0 0 red,
  31. 2em 4em 0 0 red;
  32. background: red;
  33. width: 1em;
  34. height: 1em;
  35. overflow: hidden;
  36. margin: 50px 0 70px 65px;
  37. }

筷子css - 图19

搜索

  1. #magnifying-glass {
  2. font-size: 10em;
  3. display: inline-block;
  4. width: 0.4em;
  5. box-sizing: content-box;
  6. height: 0.4em;
  7. border: 0.1em solid red;
  8. position: relative;
  9. border-radius: 0.35em;
  10. }
  11. #magnifying-glass:before {
  12. content: "";
  13. display: inline-block;
  14. position: absolute;
  15. right: -0.25em;
  16. bottom: -0.1em;
  17. border-width: 0;
  18. background: red;
  19. width: 0.35em;
  20. height: 0.08em;
  21. transform: rotate(45deg);
  22. }

筷子css - 图20

Facebook

  1. #facebook-icon {
  2. background: red;
  3. text-indent: -999em;
  4. width: 100px;
  5. height: 110px;
  6. box-sizing: content-box;
  7. border-radius: 5px;
  8. position: relative;
  9. overflow: hidden;
  10. border: 15px solid red;
  11. border-bottom: 0;
  12. }
  13. #facebook-icon:before {
  14. content: "/20";
  15. position: absolute;
  16. background: red;
  17. width: 40px;
  18. height: 90px;
  19. bottom: -30px;
  20. right: -37px;
  21. border: 20px solid #eee;
  22. border-radius: 25px;
  23. box-sizing: content-box;
  24. }
  25. #facebook-icon:after {
  26. content: "/20";
  27. position: absolute;
  28. width: 55px;
  29. top: 50px;
  30. height: 20px;
  31. background: #eee;
  32. right: 5px;
  33. box-sizing: content-box;
  34. }

筷子css - 图21

月亮

  1. #moon {
  2. width: 80px;
  3. height: 80px;
  4. border-radius: 50%;
  5. box-shadow: 15px 15px 0 0 red;
  6. }

筷子css - 图22

  1. #lock {
  2. font-size: 8px;
  3. position: relative;
  4. width: 18em;
  5. height: 13em;
  6. border-radius: 2em;
  7. top: 10em;
  8. box-sizing: border-box;
  9. border: 3.5em solid red;
  10. border-right-width: 7.5em;
  11. border-left-width: 7.5em;
  12. margin: 0 0 6rem 0;
  13. }
  14. #lock:before {
  15. content: "";
  16. box-sizing: border-box;
  17. position: absolute;
  18. border: 2.5em solid red;
  19. width: 14em;
  20. height: 12em;
  21. left: 50%;
  22. margin-left: -7em;
  23. top: -12em;
  24. border-top-left-radius: 7em;
  25. border-top-right-radius: 7em;
  26. }
  27. #lock:after {
  28. content: "";
  29. box-sizing: border-box;
  30. position: absolute;
  31. border: 1em solid red;
  32. width: 5em;
  33. height: 8em;
  34. border-radius: 2.5em;
  35. left: 50%;
  36. top: -1em;
  37. margin-left: -2.5em;
  38. }

筷子css - 图23