• Skip to main content
  • Skip to primary sidebar
  • Skip to footer

Foliovision

  • Weblog
    • FV Player
    • WordPress
    • Video of the Week
    • Case Studies
    • Business
  • About
    • Testimonials
    • Meet the Team
    • We Support
    • Careers
    • Contact
    • Pricing
  • Products
  • Support
    • FV Player Docs
    • Pro Support
  • Login
  • Basket is empty

How to scroll the video into view?

[Solved]

Foliovision › Forums › FV Player › How to … › How to scroll the video into view?

  • apasho 3 years, 12 months ago

    How can I have the video scroll into view once a link is clicked the loads the video. These is only one video on the page. I tried using

    jQuery('video.flowplayer')[0].scrollIntoView({
      behavior: "smooth", 
      block: "end"
    });      
    

    and

    jQuery(`#${window.fpId}`)[0].scrollIntoView({
      behavior: "smooth", 
      block: "end"
    });
    

    but neither is working.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Martin 4 years ago

    Hello Apasho,

    please try to change the selector to just:

    '.flowplayer'

    FV Player does use the video element, but it does not have the class “flowplayer”. I’m not sure what you store in window.fpId, but if it’s the ID of the FV Player element it should work too.

    So I tried

    jQuery('.flowplayer')[0].scrollIntoView({
      behavior: "smooth", 
      block: "end"
    });

    On https://foliovision.com/player/basic-setup/autoplay and it worked.

    Thanks,
    Martin

    apasho 4 years ago

    Yes, your code for scrolling works well.

Viewing 2 replies - 1 through 2 (of 2 total)
Reply To: How to scroll the video into view?



Please Sign in or Register to upload files.

Related Posts

  1. No scroll bar in source view in Chrome – Grammarly extension conflict

    No scroll bar in source view in Chrome – Grammarly extension conflict

  2. FV Player Sticky Video

    FV Player’s New Features: Sticky Video, Splash Text and Updated Pay Per View

  3. Vimeo Video View Discrepancy

    Vimeo Video View Discrepancy

Primary Sidebar

How to …

    Categories

    • Business
    • Camera Reviews
    • Case Studies
    • Design
    • FV Player
    • Internet Marketing
    • IT
    • Life
    • SEO
    • Slovak
    • Video of the Week
    • WordPress

    Footer

    Our Plugins

    • FV WordPress Flowplayer
    • FV Thoughtful Comments
    • FV Simpler SEO
    • FV Antispam
    • FV Gravatar Cache
    • FV Testimonials

    Free Tools

    • Pandoc Online
    • Article spinner
    • WordPress Password Finder
    • Delete LinkedIn Account
    • Responsive Design Calculator
    Foliovision logo
    All materials © 2026 Foliovision s.r.o. | Panská 12 - 81101 Bratislava - Slovakia | info@foliovision.com
    • This Site Uses Cookies
    • Privacy Policy
    • Terms of Service
    • Site Map
    • Contact
    • Tel. ‭+421 2/5292 0086‬