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. Lay Theme + scrollreveal js

Lay Theme + scrollreveal js

Scheduled Pinned Locked Moved General Discussion
4 Posts 2 Posters 558 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.
  • S Offline
    S Offline
    samuel_gadea
    wrote on last edited by
    #1

    Hello everyone,
    I would like to use scrollreveal (https://scrollrevealjs.org) with lay theme, but I have some problems.
    Scrollreveal works perfectly with the div (class=".box") that I integrate on the website via the "custom css and html" part, but it does not work at all on the div created in the lay theme grid.

    Do you know where the problem may come from?
    The plugin may be simply incompatible with lay theme.

    Have a good day,
    Samuel

    0_1490694903168_Capture d’écran 2017-03-28 à 11.45.58.png
    0_1490694930584_Capture d’écran 2017-03-28 à 11.47.36.png

    1 Reply Last reply
    0
    • mariusjopenM Offline
      mariusjopenM Offline
      mariusjopen
      Global Moderator
      wrote on last edited by
      #2

      Hi Samuel!

      Did you have a look at the documentation about hot to embed Javascript code in Laytheme?
      http://laytheme.com/documentation.html#custom-javascript

      Because your Lay Theme website is a "Single Page" JavaScript application you cannot just use jQuery(document).ready(…) to execute your js because the ready event only fires once when the website loads the first time.

      But you should use this instead:

      window.laytheme.on("newpage", function(layoutObj, type, obj){
      });
      
      window.laytheme.on("newpageshown", function(layoutObj, type, obj){
      });
      

      Also I think, if you want to call ALL the div boxes on the page you should not use

      sr.reveal('.box',500);
      

      but

      sr.reveal('div',500);
      

      Does this solution work for you?

      All the best!

      Marius

      www.mariusjopen.world

      1 Reply Last reply
      0
      • S Offline
        S Offline
        samuel_gadea
        wrote on last edited by
        #3

        Hello Marius,
        Sorry for this very late response. The site was still not finished.

        Your solution works very well for me.
        You can see the result at this address if you want:
        http://chloenegre.com

        1 Reply Last reply
        1
        • mariusjopenM Offline
          mariusjopenM Offline
          mariusjopen
          Global Moderator
          wrote on last edited by
          #4

          No worries Samuel! I am happy it works!

          www.mariusjopen.world

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


          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
          Q
          qua7
          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.
          • First post
            Last post
          0
          • Recent
          • Tags
          • Popular
          • Users
          • Search