【网站代码】网站左下角会动的蒲公英

  • 内容
  • 相关
  1. <div class="dandelion">
  2. <span class="smalldan"></span>
  3. <span class="bigdan"></span>
  4. </div>
  5. <style type="text/css">
  6. @media screen and (max-width:600px){
  7. .dandelion{display: none !important;}
  8. }
  9. .dandelion .smalldan {
  10. width: 36px;
  11. height: 60px;
  12. left: 88px;
  13. background-position: 0 -90px;
  14. border: 0px solid red;
  15. }
  16. .dandelion span {
  17. -webkit-animation: ball-x 3s linear 2s infinite;
  18. -moz-animation: ball-x 3s linear 2s infinite;
  19. animation: ball-x 3s linear 2s infinite;
  20. -webkit-transform-origin: bottom center;
  21. -moz-transform-origin: bottom center;
  22. transform-origin: bottom center;
  23. }
  24. .dandelion span {
  25. display: block;
  26. position: fixed;
  27. z-index:9999999999;
  28. bottom: 0px;
  29. background-image: url(https://s2.ax1x.com/2019/08/17/mnS12j.png);
  30. background-repeat: no-repeat;
  31. _background: none;
  32. }
  33. .dandelion .bigdan {
  34. width: 64px;
  35. height: 115px;
  36. left: 41px;
  37. background-position: -86px -36px;
  38. border: 0px solid red;
  39. }
  40. @keyframes ball-x {
  41. 0% { transform:rotate(0deg);}
  42. 25% { transform:rotate(5deg); }
  43. 50% { transform:rotate(0deg);}
  44. 75% { transform:rotate(-5deg);}
  45. 100% { transform:rotate(0deg);}
  46. }
  47. @-webkit-keyframes ball-x {
  48. 0% { -webkit-transform:rotate(0deg);}
  49. 25% { -webkit-transform:rotate(5deg); }
  50. 50% { -webkit-transform:rotate(0deg);}
  51. 75% { -webkit-transform:rotate(-5deg);}
  52. 100% { -webkit-transform:rotate(0deg);}
  53. }
  54. @-moz-keyframes ball-x {
  55. 0% { -moz-transform:rotate(0deg);}
  56. 25% { -moz-transform:rotate(5deg); }
  57. 50% { -moz-transform:rotate(0deg);}
  58. 75% { -moz-transform:rotate(-5deg);}
  59. 100% { -moz-transform:rotate(0deg);}
  60. }
  61. </style>
如果你觉得雨滴资源网对你有帮助的话,可以小小的打赏一下小站,用于维持本站的运营!
以下为全部代码:
很遗憾,无法一键复制!浏览器没有安装Flash插件 Plugins by 雨滴资源网

本文标签:

版权声明:雨滴资源网内容来源于互联网,如果有侵权内容、不妥之处,请第一时间联系我们删除。敬请谅解!

本文链接:【网站代码】网站左下角会动的蒲公英 - https://www.yudzy.com/617.html

失效提示:此文更新于2019-8-17,如果文章内容或图片资源失效,请留言反馈,客服会及时处理,谢谢!