틀:Snowfalling/styles.css: 두 판 사이의 차이

(새 문서: @keyframes snow { 0% { opacity: 0; transform: translateY(0px); } 20% { opacity: 1; } 100% { opacity: 1; transform: translateY(650px); } } @keyframes astronaut { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } } .box-of-star1, .box-of-star2, .box-of-star3, .box-of-star4 { position: fixed; z-index: 999999; left: 0; top: 0; transform: translateY(0px); width: 100%; height: 100%; } .box-of-star1 {...)
 
편집 요약 없음
30번째 줄: 30번째 줄:
.box-of-star4 {
.box-of-star4 {
   position: fixed;
   position: fixed;
   z-index: 999999;
   z-index: -3;
   left: 0;
   left: 0;
   top: 0;
   top: 0;

2024년 4월 17일 (수) 22:08 판

@keyframes snow {
  0% {
    opacity: 0;
    transform: translateY(0px);
  }

  20% {
    opacity: 1;
  }

  100% {
    opacity: 1;
    transform: translateY(650px);
  }
}

@keyframes astronaut {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.box-of-star1,
.box-of-star2,
.box-of-star3,
.box-of-star4 {
  position: fixed;
  z-index: -3;
  left: 0;
  top: 0;
  transform: translateY(0px);
  width: 100%;
  height: 100%;
}

.box-of-star1 {
  animation: snow 5s linear infinite;
}

.box-of-star2 {
  animation: snow 5s -1.64s linear infinite;
}

.box-of-star3 {
  animation: snow 5s -2.30s linear infinite;
}

.box-of-star4 {
  animation: snow 5s -3.30s linear infinite;
}

.star {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background-color: silver;
  position: absolute;
  z-index: 10;
  opacity: 0.7;
}

.star:before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: silver;
  position: absolute;
  z-index: 10;
  top: 80px;
  left: 70px;
  opacity: .7;
}

.star:after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: silver;
  position: absolute;
  z-index: 10;
  top: 8px;
  left: 170px;
  opacity: .9;
}

.star-position1 {
  top: 30px;
  left: 20px;
}

.star-position2 {
  top: 110px;
  left: 250px;
}

.star-position3 {
  top: 60px;
  left: 570px;
}

.star-position4 {
  top: 120px;
  left: 900px;
}

.star-position5 {
  top: 20px;
  left: 1120px;
}

.star-position6 {
  top: 90px;
  left: 1280px;
}

.star-position7 {
  top: 30px;
  left: 1480px;
}