Skip to content
  • Recent
  • Tags
  • Popular
  • Users
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse

Lay Theme Forum

  1. Home
  2. General Discussion
  3. Activate Magnetic slide via seperate link

Activate Magnetic slide via seperate link

Scheduled Pinned Locked Moved General Discussion
magnetic slide
5 Posts 2 Posters 1.2k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • W Offline
    W Offline
    Walker
    wrote on Jan 23, 2016, 12:48 PM last edited by
    #1

    Hey Armin,

    I have a Project with an Magnetic Slider (vertical by scrolling) which includes
just two slides.The first slide is a Carousel and the second one includes just text.
On top of the Carousel Slider I have a button which is called "information". When you
click it you should activate the Magnetic Slide-movement and go automatically down to the
information/second slide of the Magnetic Slider.
    It would be exactly be like a "scroll to bottom" Button.

    I couldn´t manage to do it. 
Maybe it`s easy for you.

    My Website is rothsimon.de/wp2

    Would be very nice
thanks a lot

    1 Reply Last reply
    0
    • A Offline
      A Offline
      arminunruh
      Global Moderator
      wrote on Jan 23, 2016, 1:48 PM last edited by
      #2

      Add a class to your "information" textelement called "godown" (without ""). You can do that by hovering over your button in the gridder and clicking the class button.

      Then in lay options -> Custom CSS & HTML -> Custom <head> content add:

      jQuery("body").on("click", ".godown", function(){
      jQuery.fn.fullpage.moveSectionDown();
      })
      

      Let me know if that works.

      You probably want to hide that button for mobile because magnetic slides might not be active for mobile.
      In lay options -> Custom CSS & HTML -> Custom CSS for Mobile Version add:

      .godown{display:none;}
      
      1 Reply Last reply
      0
      • W Offline
        W Offline
        Walker
        wrote on Jan 25, 2016, 8:37 AM last edited by
        #3

        Hi Armin,

        thanks a lot for the answer.
        I added the class to the textfield and the jquery to the head,
        unfortunately nothing happened. The Textfield with "information"
        not even bahave like a button. It is not clickable.
        Do you habe a clue what could be wrong?

        Thanks

        1 Reply Last reply
        0
        • A Offline
          A Offline
          arminunruh
          Global Moderator
          wrote on Jan 25, 2016, 7:30 PM last edited by
          #4

          Ahw yea, I made a little mistake. It should work like this:

          in lay options -> Custom CSS & HTML -> Custom <head> content add:

          <script>
          jQuery(document).ready(function(){
              jQuery("body").on("click", ".godown", function(){
                  jQuery.fn.fullpage.moveSectionDown();
              }); 
          });
          </script>
          

          In lay options -> Custom CSS & HTML -> Custom CSS for Desktop Version add:

          .godown{
              cursor: pointer;
          }
          
          1 Reply Last reply
          0
          • W Offline
            W Offline
            Walker
            wrote on Jan 26, 2016, 8:22 AM last edited by
            #5

            Hey Armin,

            thanks for the new reply,
            perfect, this works out.

            thanks for your help.

            1 Reply Last reply
            1
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes

            5/5

            Jan 26, 2016, 8:22 AM


            I also code custom websites or custom Lay features.
            💿 Email me here: 💿
            info@laytheme.com

            Before you post:
            1. When using a WordPress Cache plugin, disable it or clear your cache.
            2. Update Lay Theme and all Lay Theme Addons
            3. Disable all Plugins
            4. Go to Lay Options → Custom CSS & HTML, click "Turn Off All Custom Code", click "Save Changes"

            This often solves issues you might run into

            When you post:
            1. Post a link to where the problem is
            2. Does the problem happen on Chrome, Firefox, Safari or iPhone or Android?
            3. If the problem is difficult to explain, post screenshots / link to a video to explain it
            Online Users
            O
            OLVVDB
            21 minutes ago
            Forgot your key, lost your files, need a previous Lay Theme or Addon version? Go to www.laykeymanager.com
            laytheme.com
            • Login

            • Don't have an account? Register

            • Login or register to search.
            5 out of 5
            • First post
              5/5
              Last post
            0
            • Recent
            • Tags
            • Popular
            • Users
            • Search