• 목록
  • 아래로
  • 위로
  • 4
  • 260578
  • 조회 수 192

https://fnbase.xyz/snow.html

FNBase - 슬로건 없음..

눈발이 내리다가 처음 표시된 화면만큼만 나오고 잘리네요ㅠㅠ

퍼온 코드 수정한거라 구동 부분까지 자세히 알지 못하겠어요..

/* Css Snow */
.snowflakes {
width: 100%; height: 100%;
position: absolute; top: 10; left: 0;
    overflow: hidden !important;
}

i-i, i-i:after, i-i:before { background: white; }
i-i {
display: inline-block;
    animation: snowflakes 3s linear 2s 20;
position: relative;
}
i-i:after, i-i:before {
height: 100%;
width: 100%;
content: ".";
position: absolute;
top: 0px;
left: 0px;
transform: rotate(120deg);
}
i-i:before { transform: rotate(240deg); }

@keyframes snowflakes {
0% {
-webkit-transform: translate3d(0,0,0) rotate(0deg) scale(0.6);
}
100% {
-webkit-transform: translate3d(15px, 1200px, 0px) rotate(360deg) scale(0.6);
};
}

.snowflakes i-i:nth-child(3n) {
width: 16px; height: 4px;
animation-duration: 4s;
animation-iteration-count: 30;
transform-origin: right -45px;
}

.snowflakes i-i:nth-child(3n+1) {
width: 24px; height: 6px;
animation-duration: 6s;
animation-iteration-count: 45;
transform-origin: right -30px;
}

.snowflakes i-i:nth-child(3n+2) {
width: 32px; height: 8px;
animation-duration: 8s;
animation-iteration-count: 60;
transform-origin: right -15px;
}

/* different delays so they don't all start at the same time */
.snowflakes i-i:nth-child(7n) {
  opacity:.3;
  animation-delay: 0s;
  animation-timing-function:ease-in;
}
.snowflakes i-i:nth-child(7n+1) {
  opacity:.4;
  animation-delay: 1s;
  animation-timing-function:ease-out;
}
.snowflakes i-i:nth-child(7n+2) {
  opacity:.5;
  animation-delay: 1.5s;
  animation-timing-function:linear;
}
.snowflakes i-i:nth-child(7n+3) {
  opacity:.6;
  animation-delay: 2s;
  animation-timing-function:ease-in;
}
.snowflakes i-i:nth-child(7n+4) {
  opacity:.7;
  animation-delay: 2.5s;
  animation-timing-function:linear;
}
.snowflakes i-i:nth-child(7n+5) {
  opacity:.8;
  animation-delay: 3s;
  animation-timing-function:ease-out;
}
.snowflakes i-i:nth-child(7n+6) {
  opacity:.9;
  animation-delay: 3.5s;
  animation-timing-function:ease-in;
}
/* from https://codepen.io/iautomation/pen/VYexBz by Estrella3 */

끝까지 내릴 수 있을까요?

작성자
260578 58 Lv. (60%) 274780/278480EXP

반가워요!

댓글 4

YGL
음.. 눈이 침침해서 그런지 눈발이 내리는 것은 확인하지 못했으나.. 개발자도구로 보니 뭐가 떨어지긴 하네요

merry.css:17에 .snowflakes가 position:absolute; height:100%;로 되어있고,
height가 100%로 지정된 body 바로 밑에 있어서 맨 첫 화면만큼만 엘리먼트가 떨어지는 것 같습니다.

body의 height:100% 속성을 제거하시고(또는 height:auto로 덮어씌우기), position: relative;로 지정해주시면 snowflakes가 페이지 전체를 덮도록 할 수 있습니다
comment menu
2020.12.11. 21:44

신고

"YGL님의 댓글"

이 댓글을 신고 하시겠습니까?

YGL → YGL
보니까 keyframe에도 문제가 있네요.
1200px까지만 떨어지도록 만들어져 있습니다.
comment menu
2020.12.11. 21:47

신고

"YGL님의 댓글"

이 댓글을 신고 하시겠습니까?

YGL → YGL
https://codepen.io/captain323/pen/NWRbMaL

코드가 조금 지저분하지만..
직접 한번 만들어보았습니다.

css 갈아끼우시고, js 추가하시면 됩니다.

js의 stickCount rainCount로 비 양 조절하시면 되시고.. <rain>의 animation-delay, animation-duration으로 속도 등등 조절하시면 됩니다.
comment menu
2020.12.11. 22:28

신고

"YGL님의 댓글"

이 댓글을 신고 하시겠습니까?

260578 작성자 → YGL
profile image
감사합니다!
comment menu
2020.12.12. 00:06

신고

"260578님의 댓글"

이 댓글을 신고 하시겠습니까?

권한이 없습니다.
번호 제목 글쓴이 날짜 조회 수
공지 시스템 점검 작업 완료 안내 10 마스터 24.09.05.16:25 304
공지 [중요] 호스팅 만료와 관련하여 일부 수칙이 변경됩니다. 4 마스터 23.01.14.02:23 7330
공지 [필독] 질문하는 방법 17 마스터 18.02.23.03:09 4778
126 왜 이런지 모르겠습니다 ㅠㅠ 2 image 하늘로 18.05.16.14:14 195
125 SSL 문제 3 박재식품 18.02.26.16:03 195
124 그누보드5 최근게시물 추출 수정 관련 문의 핫슈 19.01.01.13:21 194
123 무슨 문제일까요 3 image 260578 18.04.07.11:35 194
122 별 거는 아니고 1 방구석인간 18.05.12.12:52 193
[CSS] 애니메이션 관련 4 260578 20.11.21.23:24 192
120 TTFB 2 image Apache 20.07.14.22:07 192
119 호스팅 신청하려고 하는데... 7 Nginx 18.10.04.20:11 192
118 호스팅 사용중 연장 질문 2 퓨처마츠 18.10.03.19:29 192
117 레이아웃 로그인시 백지현상? 1 핫슈 18.04.07.21:12 192
116 무슨 문제일까요 3 image 260578 18.03.03.09:32 191
115 안녕하세요. 신입입니다. 디자이너에서 코딩을 첫배움인데 처음부터 막히네요 ㅠ.ㅠ 3 image 정다성 18.09.21.12:27 190
114 동영상 플레이어 2개 이상 깔때 코덱 질문드립니다. 2 크로스하트 18.03.02.18:04 190
113 라라벨 설치 가이드 없을까요? 1 워시퍼 21.10.27.14:55 189
112 원격제어와 스트리밍을 막는 프로그램? 1 hidriqi 21.04.24.03:32 189
111 서버의 구성에 관련하여 질문드립니다 7 Seia 18.10.03.03:07 189
110 아마 당분간은 호스팅 쓸 일이 없을거 같은데 등록 취소 가능한가요? 2 abnoeh 18.09.16.09:24 189
109 [도메인]정상화된 스포어로 돌아오려고 준비하고 있었는데.. 3 image 260578 18.08.31.18:25 189
108 카카오 로그인 api처럼 위챗 로그인 api 사용해보신분 계신가요? asdf1234 21.03.03.16:04 187
107 PHP 중복체크 관련 질문합니다 3 title: 에그joyful 21.01.09.21:58 187