Skip to content
  • Recent
  • Tags
  • Popular
  • Users
  • Search
Skins
  • Light
  • Brite
  • 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. Bug Reports
  3. Cover Parallax/Darkening not functioning on 3.0.7

Cover Parallax/Darkening not functioning on 3.0.7

Scheduled Pinned Locked Moved Bug Reports
5 Posts 2 Posters 442 Views 1 Watching
  • 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.
  • joshsenderJ
    joshsenderJ
    joshsender
    wrote on last edited by
    #1

    Cover parallax doesn't seem to toggle anything. Darken doesn't either but in the linked example only Cover is toggled:

    https://huhclever.com/test

    https://joshsender.com

    joshsenderJ 1 Reply Last reply
    0
    • joshsenderJ joshsender

      Cover parallax doesn't seem to toggle anything. Darken doesn't either but in the linked example only Cover is toggled:

      https://huhclever.com/test

      joshsenderJ
      joshsenderJ
      joshsender
      wrote on last edited by
      #2

      @joshsender
      Here was it working in a previous test: https://huhclever.com/stage/test
      And note the javascript for fading as scroll that was working no longer does..

      Any help would be amazing! Thank you so much!!

      <script>
      jQuery(window).scroll(function(){
              var start = 0, end = 500;
              var opacity = 1 - (jQuery(window).scrollTop() - start) / (end - start);
                  if (opacity > 1 ) opacity = 1;
                  if (opacity < 0 ) opacity = 0;
              $(".fadeout").css("opacity", opacity);
            });
      </script>
      

      https://joshsender.com

      1 Reply Last reply
      0
      • arminunruhA
        arminunruhA
        arminunruh
        Global Moderator
        wrote on last edited by
        #3

        can you change all of your custom code to use "jQuery" instead of "$"

        like

        jQuery(window).scroll(function(){
                var start = 0, end = 500;
                var opacity = 1 - (jQuery(window).scrollTop() - start) / (end - start);
                    if (opacity > 1 ) opacity = 1;
                    if (opacity < 0 ) opacity = 0;
                $(".fadeout").css("opacity", opacity);
              });
        
        

        should be

        jQuery(window).scroll(function(){
                var start = 0, end = 500;
                var opacity = 1 - (jQuery(window).scrollTop() - start) / (end - start);
                    if (opacity > 1 ) opacity = 1;
                    if (opacity < 0 ) opacity = 0;
                jQuery(".fadeout").css("opacity", opacity);
              });
        
        
        1 Reply Last reply
        0
        • joshsenderJ
          joshsenderJ
          joshsender
          wrote on last edited by
          #4

          Awesome, looks like 3.0.9 fixed all the issues I was seeing since updating to 3!! Thanks for the super fast fixes and pushing those updates out. You're amazing!

          https://joshsender.com

          1 Reply Last reply
          0
          • arminunruhA
            arminunruhA
            arminunruh
            Global Moderator
            wrote on last edited by
            #5

            Ah thanks a lot!!

            1 Reply Last reply
            0

            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

            With your input, this post could be even better 💗

            Register Login
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            Online Users
            M
            michael_vvc
            C
            craigfeldspar
            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