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. Fixed text scroll

Fixed text scroll

Scheduled Pinned Locked Moved General Discussion
6 Posts 2 Posters 263 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.
  • G Offline
    G Offline
    Garrod
    wrote on last edited by Garrod
    #1

    Hey @arminunruh

    I’m building a new site that has full screen navigation scrolling. I’ve anchored all the different full browser height rows for click scrolling.

    However, what I’d like to do taking it a step further is in certain full screen rows, have a text box header ‘fixed’ in the centre but to only appear when you scroll to that row. So it stays in place while scroll continues but only on that specific row. I worked out how to fix the text box in centre but can’t hide it under other rows. I tried to do it by z-index so the fixed text would be there but underneath the other rows until you scroll to the row it’s intended to be, but no joy. Is there a way to do it in html and css or do I need JavaScript? Seems that way to me. Any advise would be much appreciated.

    Hope this makes sense!

    Thanks.

    G 1 Reply Last reply
    0
    • G Garrod

      Hey @arminunruh

      I’m building a new site that has full screen navigation scrolling. I’ve anchored all the different full browser height rows for click scrolling.

      However, what I’d like to do taking it a step further is in certain full screen rows, have a text box header ‘fixed’ in the centre but to only appear when you scroll to that row. So it stays in place while scroll continues but only on that specific row. I worked out how to fix the text box in centre but can’t hide it under other rows. I tried to do it by z-index so the fixed text would be there but underneath the other rows until you scroll to the row it’s intended to be, but no joy. Is there a way to do it in html and css or do I need JavaScript? Seems that way to me. Any advise would be much appreciated.

      Hope this makes sense!

      Thanks.

      G Offline
      G Offline
      Garrod
      wrote on last edited by
      #2

      It seems the question has been asked before. Any ideas? laythemeforum.com:4567/topic/5628/position-sticky-behaviour-confined-to-specific-grid-rows/6

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

        do you just want sticky elements like when using

        position: sticky?

        thats on my todo list

        im not sure if i understand what youre trying to do correctly

        G 1 Reply Last reply
        0
        • arminunruhA arminunruh

          do you just want sticky elements like when using

          position: sticky?

          thats on my todo list

          im not sure if i understand what youre trying to do correctly

          G Offline
          G Offline
          Garrod
          wrote on last edited by
          #4
          This post is deleted!
          1 Reply Last reply
          0
          • arminunruhA Offline
            arminunruhA Offline
            arminunruh
            Global Moderator
            wrote on last edited by
            #5

            i see

            ok this is a little complex

            basically you create multiple divs in lay options → html and css → html at bottom

            use css to position them in the center of your website, position fixed, pointer-events: none; use a z-index so they overlap your content
            set the opacity to 0
            and use sth like transition: opacity 300ms ease;

            now write javascript that listens to the document scroll event
            based on the scroll position, show or hide the boxes by setting their opacity to 0 or 1

            if u have a budget for this i can code this for you, send an email to info@laytheme.com

            G 1 Reply Last reply
            0
            • arminunruhA arminunruh

              i see

              ok this is a little complex

              basically you create multiple divs in lay options → html and css → html at bottom

              use css to position them in the center of your website, position fixed, pointer-events: none; use a z-index so they overlap your content
              set the opacity to 0
              and use sth like transition: opacity 300ms ease;

              now write javascript that listens to the document scroll event
              based on the scroll position, show or hide the boxes by setting their opacity to 0 or 1

              if u have a budget for this i can code this for you, send an email to info@laytheme.com

              G Offline
              G Offline
              Garrod
              wrote on last edited by
              #6

              @arminunruh

              Thanks! Good to know. I’m doing a JavaScript course at the moment. But I’m doubtful I’ll be able to leap straight into this. So I’ll be in touch.

              1 Reply Last reply
              1
              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
              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