Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Advanced Search
  • 0

CSS Animations Not Visible on Mobile


KateBBFarm

Question

Site URL: http://www.ballybrookfarm.com/home

Thanks in advance for any help! 

I've loaded an css animation library to my site, added the correct codes as instructed, and the animations work fine on desktop version. However, when I view on a mobile device, each animation is hidden. I've searched for an answer and am not coming up with any solution. 

Here is the website link: www.ballybrookfarm.com/home

Here is the code I am using in the code block:

<div id="#block-yui_3_17_2_6_1459644649106_53673" class="slideUp">
 <script> 
 $(window).scroll(function () {
 $('#block-yui_3_17_2_6_1459644649106_53673').each(function () {
 var topOfWindow = $(window).scrollTop(),
 bottomOfWindow = topOfWindow + $(window).height();
 
 var imagePos = $(this).offset().top;
 
 if(imagePos <= bottomOfWindow-250 && imagePos >= topOfWindow+250){
 $(this).addClass('slideUp');
 }
 //else{
 //$(this).removeClass('slideUp');
 //}
 });
 });
 </script>

 

And this is the code I am adding to the Custom CSS section:

#block-yui_3_17_2_6_1459644649106_53673{
background-color: #ffffff;
visibility: hidden;
}

 

Hoping to have the exact same animations seen on desktop on a mobile device.

Thank you!

Link to post
  • Answers 0
  • Created
  • Last Reply

Top Posters For This Question

Popular Days

Top Posters For This Question

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Create an account or sign in to comment

You need to be a member in order to leave a comment


×
×
  • Create New...