my.ttss 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. @charset "UTF-8";
  2. /**
  3. * 下方引入的为uView UI的集成样式文件,为scss预处理器,其中包含了一些"u-"开头的自定义变量
  4. * uView自定义的css类名和scss变量,均以"u-"开头,不会造成冲突,请放心使用
  5. */
  6. page {
  7. background-color: #f4f6f8;
  8. }
  9. .home {
  10. position: relative;
  11. }
  12. .home .userinfo {
  13. display: flex;
  14. flex-direction: column;
  15. align-items: center;
  16. padding: 30rpx 0;
  17. z-index: 100;
  18. }
  19. .home .userinfo .u-skeleton-fillet {
  20. color: #ffffff;
  21. width: 100vw;
  22. text-align: center;
  23. }
  24. .home .corrugated {
  25. bottom: -2rpx;
  26. left: 0;
  27. position: absolute;
  28. width: 100%;
  29. height: 50%;
  30. overflow: hidden;
  31. z-index: 0;
  32. }
  33. .home .corrugated .wave-item {
  34. position: absolute;
  35. width: 200%;
  36. left: 0;
  37. background-repeat: repeat no-repeat;
  38. background-position: 0 bottom;
  39. -webkit-transform-origin: center bottom;
  40. transform-origin: center bottom;
  41. }
  42. .home .corrugated .wave-top {
  43. opacity: 0.5;
  44. -webkit-animation: wave-animation 3s;
  45. animation: wave-animation 3s;
  46. -webkit-animation-delay: 1s;
  47. animation-delay: 1s;
  48. background-size: 50% 60rpx;
  49. z-index: 15;
  50. }
  51. .home .corrugated .wave-middle {
  52. opacity: 0.75;
  53. -webkit-animation: wavemove 10s linear infinite;
  54. animation: wavemove 10s linear infinite;
  55. background-size: 50% 80rpx;
  56. z-index: 10;
  57. }
  58. .home .corrugated .wave-bottom {
  59. -webkit-animation: wavemove 15s linear infinite;
  60. animation: wavemove 15s linear infinite;
  61. background-size: 50% 45rpx;
  62. z-index: 5;
  63. }
  64. @-webkit-keyframes wavemove {
  65. 0% {
  66. -webkit-transform: translateX(0) translateZ(0) scaleY(1);
  67. transform: translateX(0) translateZ(0) scaleY(1);
  68. }
  69. 50% {
  70. -webkit-transform: translateX(-25%) translateZ(0) scaleY(0.55);
  71. transform: translateX(-25%) translateZ(0) scaleY(0.55);
  72. }
  73. 100% {
  74. -webkit-transform: translateX(-50%) translateZ(0) scaleY(1);
  75. transform: translateX(-50%) translateZ(0) scaleY(1);
  76. }
  77. }
  78. @keyframes wavemove {
  79. 0% {
  80. -webkit-transform: translateX(0) translateZ(0) scaleY(1);
  81. transform: translateX(0) translateZ(0) scaleY(1);
  82. }
  83. 50% {
  84. -webkit-transform: translateX(-25%) translateZ(0) scaleY(0.55);
  85. transform: translateX(-25%) translateZ(0) scaleY(0.55);
  86. }
  87. 100% {
  88. -webkit-transform: translateX(-50%) translateZ(0) scaleY(1);
  89. transform: translateX(-50%) translateZ(0) scaleY(1);
  90. }
  91. }