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

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. (58%) 274630/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님의 댓글"

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

권한이 없습니다.
번호 제목 글쓴이 날짜 조회 수
공지 [작업 완료] 설 명절 맞이 서버 업데이트 안내 3 마스터 24.02.11.17:21 819
공지 [중요] 호스팅 만료와 관련하여 일부 수칙이 변경됩니다. 4 마스터 23.01.14.02:23 4486
공지 [필독] 질문하는 방법 17 마스터 18.02.23.03:09 4476
925 ls는 됫는대 압축풀기가 안되내요 ㅜㅜ 핫슈 20.06.16.21:15 42
924 XE 1.4.XXX 버전 사용하는데 모바일 레이아웃이 계속 적용이 안 되네요. 1 αGO 20.07.02.10:09 42
923 맵네임을 누르면 다른 사이트의 게시판을 나오게 하고싶은데 어떻게 해야하나요? 1 손가락개 20.11.08.01:01 51
922 퍼티에서 command 뜨면 없다는 것인가요? 2 핫슈 20.06.15.19:55 53
921 내 포인트는 어디서 확인하나요? 3 파이리 21.02.08.11:58 54
920 사이트 정보 등록글 링크가 뭐죠..? 2 파이리 21.02.07.20:11 56
919 ftp web파일 1 wikiowner 20.11.11.22:16 57
918 PHP) 위키 문법 정규식 처리 관련 260578 20.09.06.20:59 64
917 홈페이지 디자인을 바꾼 후부터 게시판 스킨 적용이 이상하게 됩니다 image 손가락개 20.12.04.02:56 66
916 가비아 도메인 스터디 포 어스 연결되나요? 1 HighSpeed 21.01.15.17:28 68
915 php 1 wikiowner 21.01.22.11:10 69
914 간단한 질문 드립니다 2 {Cog} 20.07.07.18:44 70
913 구글과 사파리의 결과값에 차이가 있습니다. 조언 부탁드려도 될까요? 7 image GsusWeb 20.06.18.09:52 73
912 그매햇던것이 라이믹스 에 안올라갑니다. 2 image 핫슈 20.06.19.20:52 73
911 요즘 코로나 백신 소식이 자주나오는데 내년에는 괜찮을까요? 3 필우 20.11.13.10:41 74
910 예)www.123.com > 123.com리디렉트 질문 1 image HighSpeed 21.01.21.17:27 74
909 FTP 로 라이믹스 업로드 중 전송실패가 많다. 2 핫슈 20.06.14.19:51 75
908 CentOS vsftp 윈도우 클라이언트에서 접속 불가 2 image 세종대왕 20.09.09.14:04 75
907 최근에 혹시 phpmyadmin 주소가 바뀌었나요? 2 막시모 21.01.28.17:42 75
906 마스터님! 3 citen 21.02.14.12:45 77