Template:ScrollVideo: Difference between revisions
Appearance
| [checked revision] | [checked revision] |
Create template |
Update |
||
| Line 2: | Line 2: | ||
Embeds an HTML5 video that auto-plays when scrolled into view. | Embeds an HTML5 video that auto-plays when scrolled into view. | ||
Usage: | Usage: <code><nowiki>{{ScrollVideo|file=Product-Demo.mp4|width=640|caption=Product demonstration}}</nowiki></code> | ||
<code><nowiki>{{ScrollVideo|file=Product-Demo.mp4|width=640|caption=Product demonstration}}</nowiki></code> | |||
[[Category:Templates]] | [[Category:Templates]] | ||
</noinclude><includeonly><div class="scroll- | </noinclude><includeonly><div class="soji-scroll-video" data-src="{{{src|{{filepath:{{{file|}}}}}}}}" data-width="{{{width|640}}}" data-caption="{{{caption|}}}"></div></includeonly> | ||
</div></includeonly> | |||
Latest revision as of 01:38, 27 May 2026
Embeds an HTML5 video that auto-plays when scrolled into view.
Usage: {{ScrollVideo|file=Product-Demo.mp4|width=640|caption=Product demonstration}}