Skip to content

What this Repository does is that it gives the ability to add and image on top of an embedded video. It also has a pulsing button to give it an interactive design.

License

Notifications You must be signed in to change notification settings

jrodcode/iFrame-Video-with-Poster-and-Pulsing-Button

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

iFrame-Video-with-Poster-and-Pulsing-Button

What this Repository does is that it gives the ability to add and image on top of an embedded video. It also has a pulsing button to give it an interactive design.

How to replace the iframe video?

Replace the source and then check what kind of features you want at the end of the source, like auto place or display relative videos.

<iframe class="videoIframe js-videoIframe" src="https://www.youtube.com/embed/FNPqWao47c0?autoplay=0&rel=0" title="QuietCool What does a whole house fan do?"       frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen>
</iframe>

How to replace the image?

All you would have to do is replace the Background-image source and that should do the trick!

<button class="videoPoster js-videoPoster" style="background-image:url(https://airsmart.quietcooldealer.com/wp-content/uploads/2022/01/AtticFans.webp);background-size:contain;background-repeat:no-repeat;background-position:center;">
</button>

About

What this Repository does is that it gives the ability to add and image on top of an embedded video. It also has a pulsing button to give it an interactive design.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published