0

I am creating a website on Webflow, and I have no experience in codes. I added a basic setup of Scrollify, but I want it to work only on pc. On mobile, I want a basic scroll.

<script>
    $(function() {
      $.scrollify({
        section : ".scrollsection",
      });
    });
  </script>

It's working perfectly on pc, but on the phone, it brakes the website. I want to disable it on mobile and get the normal touch scroll back.

Tried to brake Scrollify with no existing section name:

    <script>
        $(function() {
           var windowWidth = $(window).width(); 
           if(windowWidth > 768){ 
           $.scrollify({ section:".scrollsection"}); } 
           else{ 
           $.scrollify({ section:".not-existing-section" }); } });
   </script>

It stops whole scrolling on mobile. (But if I zoom in on the website on my phone, I can scroll normally.)

Is there a way to stop scrollify.js on mobile without blocking the whole scroll?

I saw the topic: How to disable scrollify.js on mobile but there is no answer.

SashaG
  • 1

0 Answers0