jquery - Function fires automatically on page Load -
i've ran problem google chrome when site loads. (safari & ff works fine)
when page loads, in chrome, function fires automatically , scrolls maincontent top.
my whish display fullscreen slide on pageload. when scroll page, slide hide , main content of page scroll top.
.frame slide
.maincontent main content
any ideas how fix problem?
thanks!!
<script> window.addeventlistener("scroll", function(scroll) { $('.frame').hide(1000); $(".maincontent").animate({ margintop: 0, }, 700 ); }) </script>
Comments
Post a Comment