나는이 문제를 혼자서 해결했습니다.
두 페이지가 #one
및 #two
입니다. 버튼을 클릭하면은 #one
페이지 #two
이고 하단은 입니다. 이 애니메이션은 페이지에라고 지금
@-webkit-keyframes dontdoshit {
from { -webkit-transform: translate(0,0); }
to { -webkit-transform: translate(0,0); }
}
@-moz-keyframes dontdoshit {
from { -moz-transform: translate(0,0); }
to { -moz-transform: translate(0,0); }
}
@keyframes dontdoshit {
from { transform: translate(0,0); }
to { transform: translate(0,0); }
}
나는 확실히 만들고있어 : 지금은이 같은 사용자 지정 애니메이션을 만든 두 번째 페이지를 밀기 전에 jQuery를 모바일 일반적으로 할 것이 첫 번째 페이지의 페이드 아웃을 방지하기 위해 #one
, 그렇지 않으면 페이지가 #two
위로 밀어 올 때까지 사라집니다.
.slideup.out {
-webkit-animation-name: dontdoshit;
-webkit-animation-duration: 1ms;
-moz-animation-name: dontdoshit;
-moz-animation-duration: 1ms;
animation-name: dontdoshit;
animation-duration: 1ms;
}
.slideup.in.reverse {
-webkit-animation-name: dontdoshit;
-webkit-animation-duration: 1ms;
-moz-animation-name: dontdoshit;
-moz-animation-duration: 1ms;
animation-name: dontdoshit;
animation-duration: 1ms;
}
마지막으로 내가
#one {
display: block!important;
z-index: 2;
}
을 강제로 내 첫 번째 페이지를 숨기는 jQuery를 핸드폰 스크립트 릿을 방지하고 페이지의 상단에있을 것입니다 그래서 두 번째 페이지에게 더 높은 Z 색인을 준 한
#two {
z-index: 9999;//this is quite a lot :o
}
지금까지 해보신 것은 무엇입니까? 이렇게하는 방법에 관해서는 많은 논의가 있습니다. – Ryan
-webkit-keyframes로 자신 만의 전환을 만들려고했으나 첫 번째 페이지가 위로 밀린 다음 새 페이지가 밀어 넣어지는 문제가 있습니다. 나는 실제 페이지를 그대로 유지하고 페이드 오버레이없이 새로운 페이지 오버레이를 갖기를 원한다. 새로운/두 번째 페이지는 html 파일에도 삽입됩니다. –