Welcome to TalkGraphics.com
Results 1 to 8 of 8

Hybrid View

  1. #1
    Join Date
    Apr 2015
    Location
    Germany
    Posts
    927

    Default Re: Responsive site not working correctly in Chrome

    Not sure why it didn't work, but this should. You need to place it at the page body instead of the head.
    Code:
    <script>
    if(navigator.userAgent.indexOf('Chrome')>=0){
     document.getElementsByClassName("parallax")[0].style.willChange="transform";
     document.getElementsByClassName("parallax2")[0].style.willChange="transform";
    }
    </script>
    If you consider to use it I recommend you try it on older versions of Chrome too before uploading to your site.

  2. #2
    Join Date
    Jun 2012
    Location
    CZECH
    Posts
    148

    Default Re: Responsive site not working correctly in Chrome

    This is a fully functional variant with multiple parallaxes:

    <script>$(function(){setTimeout(function(){if(xr_c hrome)$(".parallax,.parallax2,.parallax1,.parallax 3").css("will-change","transform");},1000);});</script>

  3. #3

    Default Re: Responsive site not working correctly in Chrome

    Thanks Siran
    That did work.

    Spamiky thanks for the input.

 

 

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •