Skip to content

Latest commit

 

History

History
18 lines (14 loc) · 1.08 KB

File metadata and controls

18 lines (14 loc) · 1.08 KB

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>