How to Play a Video on Hover [Elementor Tutorial]

In this Elementor tutorial I will show you how to play a video on hover. This can be a handy trick if you want more interaction on your page.

Note: This tutorial won’t cover how to do this effect with third party video platforms like YouTube and Vimeo. You will need to upload your own mp4 files to pull off this effect.

Timestamps:

  • 0:00 Introduction
  • 0:28 Add HTML Code
  • 3:25 Mobile HTML Code

HTML Code:

				
					<video onmouseover="this.play()" onmouseout="this.pause();this.currentTime=0;">
<source src="video.mp4" type="video/mp4"></source>
</video>
				
			

HTML Mobile Code:

				
					<video muted playsinline onmouseover="this.play()" onmouseout="this.pause();this.currentTime=0;" poster="image.jpg">
<source src="video.mp4" type="video/mp4"></source>
</video>
				
			

Free Brand Messaging Worksheet

Define Your Voice and Connect with Your Audience

More Free Resources

Let's Work Together

Big ideas start with a quick chat. Let’s talk!