내 site 첫 페이지에 로고가 있지만 스크롤을 시작할 때까지 표시되지 않습니다. 나는 그것을 어떻게 보이게 할 수 있습니까?시차 사이트 - 스크롤 할 때까지 Img가 표시되지 않습니다.
다음#introwrapper {
height: 900px;
position: relative;
overflow: hidden;
background: transparent url('images/introbagved.png') no-repeat center;
}
#intro{
background: url('images/introforan.png') no-repeat center;
height: 900px;
width: 1440px;
margin: 0;
position: relative;
z-index: 3;
}
#logo{
background: transparent url('images/logo.png') no-repeat center;
width: 400px;
height: 400px;
position: absolute;
margin-left: 520px;
margin-top: 160px;
z-index: 2;
}
내 JQuery와있다 : 여기
는<div id="introwrapper">
<div id="intro">
<!-- <div id="introbaggrundforan"></div>-->
<div id="introbaggrundbagved"></div>
<a name="section1" class="section1">SECTION 1</a>
</div> <!--#intro-->
<div id="logo"></div>
다음
내 CSS는 내 HTML입니다
$(document).ready(function(){
$(window).bind('scroll',function(e){
parallaxScroll();
});
function parallaxScroll(){
var scrolledY = $(window).scrollTop();
$('#logo').css('top','+'+((scrolledY*.819))+'px');
귀하의 사이트에 대한 링크가 작동하지 않습니다 ... –