Back to the
Component Shop
Read this first! Accordion Alert / Callout Another Lightbox Gallery Audio Player with Playlist Auto Sidebar Backbutton Basic Form Before/After Comparison Buttons Collapsible Alert Contact Form Count-down Script Crossfade Slider CSS Parallax Cut-out Text Decorative Background Details/Summary Classes Drilldown Menu Drop-down Easy Mega Menu Equal Height Columns Filtered Portfolio Flip-cards Glossary Table Hamburger Menu HTML Quiz Horizontal Tabs Image Gallery Image Modal Image Shapes Image Slider with Fade Jquery Parallax Lazy Loading Lightbox Gallery Magnifying Glass Masonry Grid Gallery Mega Menu Modal Optimal Image Sizes Oval Image PHP Includes Range Slider Read More Button Responsive Card Table Responsive Navbar Responsive Shrinknav Responsive Sidebar Responsive Table Round Image Scroll to Top Searchbox Simple Shapes Simple Cards Simple Slider Skill Bars Slide-in Nav Sticky Mega Menu Sticky Vertical Menu Subnav in Dropdowns Tabbed Gallery Tab Navigation Text on Image Translucent Image Translucent Text Layer Vertical Tabs Video Video Scroller Wrapping Text Years Completed Zebra Striped Table

Video Scroller

In this scroller you can show trailers of videos as examples for customers. When you scroll down, the video you have been looking at gets stopped, and the next one starts playing.The videos have been added using the 'HTML 5 video' element. However, the scroller does not work well on mobile devices.

To change the size of the display window you edit the width of the .video-wrapper and the height of the .vids in the style sheet scroller-styles.css. The aspect ratio of the actual video file can be set in the js at the bottom of the HTML file where it now says 10 / 16. It may take a bit of fiddling to get all the proportions right.

The scroller may also be used for displaying other things, like text, images, most things actually. In those cases you won't necessarily need the little script found at the bottom of this page (in code view). The script is there to manage the shifting of the videos.

The videos used here are from Pexels.

Download the component.