Tagged: yigit
-
AuthorPosts
-
January 26, 2016 at 1:56 pm #572081January 26, 2016 at 2:14 pm #572094
Hi,
Loo at the private content.
January 26, 2016 at 2:17 pm #572097Hi!
We will keep the thread open and wait to hear from you. It will be on hold until you reply. To avoid having it accidentally closed, please reply to this thread when you would like to continue :)
Regards,
YigitJanuary 27, 2016 at 4:40 pm #573025January 27, 2016 at 4:54 pm #573037January 27, 2016 at 5:17 pm #573063January 27, 2016 at 5:21 pm #573075January 27, 2016 at 5:30 pm #573089FTP details (and comments)
- This reply was modified 8 years, 11 months ago by tom9275.
January 27, 2016 at 6:10 pm #573114January 27, 2016 at 6:19 pm #573125Thank you Yigit.
Unfortunately, despite we cleared the cache, animated numbers don’t start. We tried on a Windows PC (7), Macbook pro 2015 (El Capitan) and a surface pro 4. :(
January 27, 2016 at 6:37 pm #573138January 27, 2016 at 6:54 pm #573166if($.fn.avia_waypoints)
{
if(typeof container == ‘undefined’){ container = ‘body’;};$(‘.avia_animate_when_visible’, container).avia_waypoints();
$(‘.avia_animate_when_almost_visible’, container).avia_waypoints({ offset: ‘50%’});if(container == ‘body’) container = ‘.avia_desktop body’;
$(‘.av-animated-generic’, container).avia_waypoints({ offset: ‘95%’});
}But as I already said, it really depends of the window size. Animated numbers seem not working in particular conditions (laptop or downsized window).
I just realized height has no effect. Only window width stops AN working.
January 28, 2016 at 6:09 am #573497Hey!
We added the following code in the functions.php file. Let us know if it makes any difference:
add_action('wp_footer', 'ava_auto_resize'); function ava_auto_resize(){ ?> <script> (function($){ var int = window.setInterval(function(event){ $(window).trigger('resize'); }, 2000); $(window).scroll(function () { setTimeout(function() { clearInterval(int); }, 10000); }); })(jQuery); </script> <?php }
Don’t forget to remove browser cache or hard refresh before testing the page.
Cheers!
IsmaelJanuary 28, 2016 at 9:47 am #573574Sorry but no changes.
It only works when I resize the browser window :(
January 28, 2016 at 4:56 pm #573850Hi!
I set offset value to 100% according to Ismael’s suggestion and tried resizing browser manually, changing screen resolution and refreshing few times. I still cannot reproduce the issue. I de-activated WP Rocket plugin temporarily. Please do not turn it on until we solve the issue.
Can you please review your website once again? Please view your page in an incognito mode (CMD+Shift+N on Chrome on Mac) and refresh your page a few times.
Regards,
YigitJanuary 28, 2016 at 5:01 pm #573855Hi Yigit,
It’s working both on Chrome and Safari. It’s a little bit slow and I have to scroll down many times but it’s much better.
Can I try to activate WP Rocket or do you want to test something else ?
- This reply was modified 8 years, 11 months ago by tom9275.
January 28, 2016 at 5:03 pm #573860Hey!
Great!
Yes, you can turn it on now. I have disable JS caching as well so please make sure to enable that as well
Cheers!
YigitJanuary 28, 2016 at 5:08 pm #573864As you said : Great !
Can you tell me exactly what you did so I can save the workaround on our wiki ?
Thanks a lot for your support.
January 28, 2016 at 5:12 pm #573871Hi!
I edited Enfold/js/shortcodes.js file and changed following line
$('.avia_animate_when_almost_visible', container).avia_waypoints({ offset: '80%'});
to following one
$('.avia_animate_when_almost_visible', container).avia_waypoints({ offset: '100%'});
Best regards,
YigitJanuary 28, 2016 at 5:15 pm #573877you removed the additional code in functions.php ?
January 28, 2016 at 5:21 pm #573888 -
AuthorPosts
- You must be logged in to reply to this topic.