틀:연습장:아바투르너마저/1/styles.css: 두 판 사이의 차이

편집 요약 없음
(내용을 ".mw-body { background-size: cover; background-repeat: no-repeat; background-position: center; background-attachment: fixed; }"(으)로 바꿈)
태그: 대체됨
 
(같은 사용자의 중간 판 24개는 보이지 않습니다)
1번째 줄: 1번째 줄:
.rain-container {
.mw-body {
   position: relative;
   background-size: cover;
   width: 100vw;
   background-repeat: no-repeat;
   height: 100vh;
   background-position: center;
  overflow: hidden;
   background-attachment: fixed;
   background-color: #1e1e1e; /* 배경색을 어둡게 설정하여 비 효과가 더 돋보이도록 */
}
}
.rain-drop {
  position: absolute;
  top: -10%; /* 화면 상단에서 시작 */
  width: 2px;
  height: 15px;
  background-color: rgba(173, 216, 230, 0.8); /* 연한 파란색 */
  border-radius: 50%;
  animation: fall 1s linear infinite;
  opacity: 0.7;
}
/* 빗방울 떨어지는 애니메이션 */
@keyframes fall {
  0% {
    transform: translateY(0) translateX(0);
    opacity: 0.7;
  }
  100% {
    transform: translateY(100vh) translateX(10px); /* 살짝 흔들리며 떨어짐 */
    opacity: 0;
  }
}
/* 여러 빗방울의 애니메이션 타이밍과 위치를 다르게 설정 */
.rain-drop:nth-child(1) { left: 10%; animation-delay: 0s; }
.rain-drop:nth-child(2) { left: 30%; animation-delay: 0.2s; }
.rain-drop:nth-child(3) { left: 50%; animation-delay: 0.4s; }
.rain-drop:nth-child(4) { left: 70%; animation-delay: 0.6s; }
.rain-drop:nth-child(5) { left: 90%; animation-delay: 0.8s; }

2025년 1월 4일 (토) 02:55 기준 최신판

.mw-body {
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  background-attachment: fixed;
}