The Moz Q&A Forum

    • Forum
    • Questions
    • My Q&A
    • Users
    • Ask the Community

    Welcome to the Q&A Forum

    Browse the forum for helpful insights and fresh discussions about all things SEO.

    1. SEO and Digital Marketing Q&A Forum
    2. Categories
    3. Web Design
    4. Hiding content until user scrolls - Will Google penalize me?

    Hiding content until user scrolls - Will Google penalize me?

    Web Design
    11 6 2.5k
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as question
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • LauraSultan
      LauraSultan last edited by

      Google will probably index it, but it won't be given the same weight as content that's immediately visible.

      ChrisAshton 1 Reply Last reply Reply Quote 1
      • ChrisAshton
        ChrisAshton @LauraSultan last edited by

        This is my understanding too, Laura. It has proven frustratingly difficult to find a definitive answer to this question!

        1 Reply Last reply Reply Quote 0
        • Sam.at.Moz
          Sam.at.Moz last edited by

          Is Google really that cleaver to look into my scripts folder and see that the content is actually shown on scroll, probably not, so I'm guessing as you've both suggested it may not be worth it.

          I wonder if there's a better way of doing this other than using opacity.

          1 Reply Last reply Reply Quote 0
          • EGOL
            EGOL last edited by

            Grab a few unique phrases in what is not shown immediately to the visitor, then search for it in quotes.

            Should answer the question fast.

            Sam.at.Moz 1 Reply Last reply Reply Quote 0
            • Sam.at.Moz
              Sam.at.Moz @EGOL last edited by

              True, but won't tell me easily if it's given less weighting.

              1 Reply Last reply Reply Quote 0
              • LauraSultan
                LauraSultan last edited by

                John Mueller addressed a similar question in a recent Google Webmaster Central office-hours hangout, and he was pretty definitive. The question was about text that's hidden behind tabs. He states that they see the hidden content but won't give it as much weight.

                Here's the link - https://www.youtube.com/watch?v=zZAY-BwL6rU.  The question starts at 6:45.

                Google does read JavaScript and CSS, and that's why they send warnings to webmasters if such files are blocked from googlebot.

                Sam.at.Moz 1 Reply Last reply Reply Quote 2
                • KaneJamison
                  KaneJamison last edited by

                  Hey Sam.

                  Is this for a visual feature, like making the content "appear" as the user scrolls? While Google is doing a great job of reading JS, my concern would be that this looks like cloaking or hidden text if the purpose is misinterpreted.

                  There may be safer ways to do this depending on what your goal is. Let me know and I can go from there.

                  Sam.at.Moz 1 Reply Last reply Reply Quote 1
                  • Sam.at.Moz
                    Sam.at.Moz @KaneJamison last edited by

                    Thanks Kane,

                    Yes, this is a visual feature to appear as the user scrolls.

                    Would love to hear if there is a better way.

                    Sam

                    1 Reply Last reply Reply Quote 0
                    • Sam.at.Moz
                      Sam.at.Moz @LauraSultan last edited by

                      Interesting, far enough I suppose. Would certainly hold me back from making webpages a lot less visually appealing.

                      1 Reply Last reply Reply Quote 0
                      • KendallHershey
                        KendallHershey last edited by

                        Hi,

                        An alternative approach would be to use http://michalsnik.github.io/aos/ library. It does not set the visibility: hidden or hide the content, but uses the concept of as the element is within the viewport it will apply the animation. Make sure to test AOS library though because it does set the opacity to 0 so feel free to test in a development environment and fetch as google using Webmaster Tools.

                        If you don't want to use the AOSjs library you can write your own Javascript (JS) library to detect if the element is within the viewport and add the CSS class from the https://daneden.github.io/animate.css/ library as needed.

                        1 Reply Last reply Reply Quote 0
                        • 1 / 1
                        • First post
                          Last post
                        • Will Google Judge Duplicate Content on Responsive Pages to be Keyword Spamming?
                          NickSamuel
                          NickSamuel
                          0
                          2
                          627

                        • Will HTTPS Effect SERPS Depending on Different Page Content?
                          1
                          1
                          55

                        • Hiding Out of Stock Products for Users
                          Alick300
                          Alick300
                          0
                          2
                          77

                        • Google tag manager on blocked beta site - will it phone home to Google and cause site to get indexed?
                          Nobody1596916721222
                          Nobody1596916721222
                          0
                          4
                          234

                        • Will changing content managment systems affect rankings?
                          dcostigan
                          dcostigan
                          0
                          6
                          153

                        • Penalized by duplicate content?
                          Tz_Seo
                          Tz_Seo
                          0
                          3
                          497

                        • How will it affect my site if i link to a site with adult content?
                          irvingw
                          irvingw
                          0
                          5
                          562

                        • Google Penalizing Websites that Have Contact Forms at Top of Website Page?
                          JustDucky
                          JustDucky
                          1
                          6
                          628

                        Get started with Moz Pro!

                        Unlock the power of advanced SEO tools and data-driven insights.

                        Start my free trial
                        Products
                        • Moz Pro
                        • Moz Local
                        • Moz API
                        • Moz Data
                        • STAT
                        • Product Updates
                        Moz Solutions
                        • SMB Solutions
                        • Agency Solutions
                        • Enterprise Solutions
                        • Digital Marketers
                        Free SEO Tools
                        • Domain Authority Checker
                        • Link Explorer
                        • Keyword Explorer
                        • Competitive Research
                        • Brand Authority Checker
                        • Local Citation Checker
                        • MozBar Extension
                        • MozCast
                        Resources
                        • Blog
                        • SEO Learning Center
                        • Help Hub
                        • Beginner's Guide to SEO
                        • How-to Guides
                        • Moz Academy
                        • API Docs
                        About Moz
                        • About
                        • Team
                        • Careers
                        • Contact
                        Why Moz
                        • Case Studies
                        • Testimonials
                        Get Involved
                        • Become an Affiliate
                        • MozCon
                        • Webinars
                        • Practical Marketer Series
                        • MozPod
                        Connect with us

                        Contact the Help team

                        Join our newsletter
                        Moz logo
                        © 2021 - 2026 SEOMoz, Inc., a Ziff Davis company. All rights reserved. Moz is a registered trademark of SEOMoz, Inc.
                        • Accessibility
                        • Terms of Use
                        • Privacy