Robert Granlund
asked on
jQuery scrollTop
On a Desktop, how do I get this following jQuery animation to start sooner as you scroll down the page? It works perfect on a laptop but it takes a while to activate on a desktop. I don't understand a lot about jQuery and am trying to learn more, thanks.
It is the Circle animation under Total Solutions: http://0c8.88c.myftpupload (DOT) com/innovation/
It is the Circle animation under Total Solutions: http://0c8.88c.myftpupload (DOT) com/innovation/
<script>
if($('body').hasClass('page-template-page-innovation-php')){
var Wt = $(window).scrollTop();
var ofT = $('.totalsol').offset().top - $(window).height() + $('.totalsol').outerHeight() /6.5 + 10;
var autopage = ofT + $('.totalsol').outerHeight();
if(Wt > ofT && Wt < autopage ){
setTimeout(function(){
$('.anmation-box').addClass('show_box');
setTimeout(function(){
$('.icon1').addClass('run_animatio');
setTimeout(function(){
$('.icon2').addClass('run_animatio');
setTimeout(function(){
$('.icon3').addClass('run_animatio');
setTimeout(function(){
$('.icon4, .icon5, .icon6').addClass('run_animatio');
$('#spinning_circle').removeClass('shaking shakeme');
setTimeout(function(){
$('.soltion_text').addClass('run_animatio');
setTimeout(function(){
$('.logo_fade').addClass('run_animatio');
$('#spinning_circle').removeClass('shaking shakeme');
},3000);
},700);
},700);
},700)
},500)
},500)
},200);
}
}
});
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
the only difference may be the CPU, could you confirm the CPU and graphic card you've on both ?