styles.css 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. :root {
  2. --main-dark-color: #382f2d;
  3. --main-light-color: #faf4f2;
  4. }
  5. header.positive-header {
  6. background-color: var(--main-dark-color);
  7. color: var(--main-light-color);
  8. }
  9. .mdl-layout__header-row {
  10. padding: 1rem;
  11. }
  12. .positive-content {
  13. display: flex;
  14. flex-direction: column;
  15. }
  16. .positive-content mdl-grid {
  17. width: 100%;
  18. }
  19. .positive-animation-area {
  20. position: absolute;
  21. top: 0;
  22. left: 0;
  23. height: 100%;
  24. width: 100%;
  25. background-color: var(--main-light-color);
  26. overflow: hidden;
  27. }
  28. ul.plus-area {
  29. margin: 0;
  30. padding: 0;
  31. list-style: none;
  32. }
  33. ul.plus-area li {
  34. position: absolute;
  35. display: block;
  36. color: #ebe4e1;
  37. animation: animate 20s ease-in infinite;
  38. bottom: -100px;
  39. }
  40. ul.plus-area li:nth-child(1) {
  41. left: 0%;
  42. font-size: 15rem;
  43. animation-delay: 2s;
  44. animation-duration: 15s;
  45. }
  46. ul.plus-area li:nth-child(2) {
  47. left: 5%;
  48. font-size: 40rem;
  49. animation-delay: 0s;
  50. }
  51. ul.plus-area li:nth-child(3) {
  52. left: 20%;
  53. font-size: 20rem;
  54. animation-delay: 7s;
  55. }
  56. ul.plus-area li:nth-child(4) {
  57. left: 3%;
  58. font-size: 10rem;
  59. animation-delay: 10s;
  60. }
  61. ul.plus-area li:nth-child(5) {
  62. left: 30%;
  63. font-size: 15rem;
  64. animation-delay: 15s;
  65. animation-duration: 12s;
  66. }
  67. @keyframes animate {
  68. 0% {
  69. transform: translateY(0);
  70. }
  71. 100% {
  72. transform: translateY(-110vh);
  73. }
  74. }