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. Snap scrolling

Snap scrolling

Scheduled Pinned Locked Moved General Discussion
7 Posts 3 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.
  • J Offline
    J Offline
    josehoudini
    wrote on last edited by
    #1

    Hey everyone! I'm trying to find some JS lines to achieve a vertical snap scrolling effect, so that each row (all set in full height) will align on the viewport based on proximity. Does anybody have a fix for this? Thanks in advance!

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

      Dear @josehoudini

      Is it possible to be more specific or maybe you have an example of what you wish to emulate so that the community can have a better idea? :)

      But i still wish to help :)
      Are options with CSS good for you?

      https://css-tricks.com/practical-css-scroll-snapping/

      https://developers.google.com/web/updates/2018/07/css-scroll-snap

      Adding CUSTOM CSS in "Lay Options"

      Are you familiar with adding Custom Javascript to Lay Theme already?

      http://laytheme.com/documentation.html#custom-javascript

      Just trying to understand better :)

      Best wishes
      Sincerely

      Richard

      1 Reply Last reply
      0
      • J Offline
        J Offline
        josehoudini
        wrote on last edited by
        #3

        Yes I am fully aware with what you provide just trying to achieve this https://css-tricks.com/practical-css-scroll-snapping/

        1 Reply Last reply
        0
        • J Offline
          J Offline
          josehoudini
          wrote on last edited by
          #4

          Here's an example of full screen snap scrolling https://www.folchstudio.com/

          1 Reply Last reply
          0
          • RichardR Offline
            RichardR Offline
            Richard
            Global Moderator
            wrote on last edited by
            #5

            Dear @josehoudini

            @davbal Has a beautiful website where snap scrolling occurs

            https://davbal.com/brickell-city-centre

            Asking him may be worthwhile :)

            Best
            Richard

            1 Reply Last reply
            0
            • C Offline
              C Offline
              ckid
              wrote on last edited by
              #6

              Dear @Richard,
              is it also possible to set the scroll-snap-type for a vertical "thumbnail grid" or "element grid" with one column, since there does not seem to be a class "container" as shown in this example https://css-tricks.com/practical-css-scroll-snapping/?
              Thanks in advance!

              1 Reply Last reply
              0
              • RichardR Offline
                RichardR Offline
                Richard
                Global Moderator
                wrote on last edited by Richard
                #7

                Dear @ckid

                The Thumbnail Grid has a nice slide-into-view but not snap scrolling like the Fullscreen Slider sorry. You may wish to custom Code it. šŸŒ


                Best wishes ✨
                Richard
                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
                C
                craigfeldspar
                A
                alasdair17
                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