In this tutorial, I will show you how to create a design where we have multiple videos in a section that will play one after the other.
We are using the Elementor video element for this, along with self hosted videos.
This won't work with YouTube videos or Vimeos. Technically it could work, but it would be so complicated, and the performance not good, that it's not worth it.
So this design is for self hosted videos only, and keep in mind self hosted does not necessarily mean on your own server. Learn how to self host videos with BunnyCDN.
Here is the demo:
Features:
- Polyvalent: You can have 2, 3 or 4 videos (or more!) and it will loop through them automatically.
- Responsive: This works well on mobile too, although there you will run in the normal limitations of videos autoplaying on mobile (essentially it won't work if the device is in power saving mode).
- Accessible: Play/pause toggle button to stop the animation
The way the video playback works is that the active video plays out completely, then when it ends, we proceed to the following video. When there is no more videos, we loop back to the first one.
Credits for the design idea to this website.
Let's get started!
First, let's prepare your video files carefully
This is a premium tutorial. Purchase access to unlock the full tutorial.