A play control that opens a video in a dialog, composed from Button, Dialog and Bootstrap utilities.
A round play button in a translucent ring for wide hero and cover sections. The ring breathes only for visitors who allow motion; the frame loads its video when the dialog opens.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30<div class="d-flex align-items-center justify-content-center bg-dark bg-gradient py-5 px-3"> <div class="d-inline-flex rounded-circle p-3 bg-white bg-opacity-25 animate-breathe"> <button type="button" class="btn btn-light btn-lg rounded-circle p-4 shadow text-primary" data-bs-toggle="modal" data-bs-target="#video-round" aria-label="Watch the introduction"> <svg viewBox="0 0 24 24" width="2em" height="2em" fill="currentColor" stroke="none" aria-hidden="true" focusable="false"> <path d="M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z"/> </svg> </button> </div> </div> <div class="modal fade" id="video-round" tabindex="-1" aria-labelledby="video-round-title" aria-hidden="true" > <div class="modal-dialog modal-xl modal-dialog-centered"> <div class="modal-content"> <div class="modal-header"> <h1 class="modal-title" id="video-round-title">Introduction</h1> <button type="button" class="btn-close" aria-label="Close" data-bs-dismiss="modal"></button> </div> <div class="modal-body p-0"> <div class="ratio ratio-16x9"> <iframe class="border-0" title="Introduction" data-video-src="https://www.youtube-nocookie.com/embed/M7lc1UVf-VE" allow="autoplay; encrypted-media; picture-in-picture; fullscreen" referrerpolicy="strict-origin-when-cross-origin"></iframe> </div> </div> </div> </div> </div>
<div class="d-flex align-items-center justify-content-center bg-dark bg-gradient py-5 px-3"> <div class="d-inline-flex rounded-circle p-3 bg-white bg-opacity-25 animate-breathe"> <button type="button" class="btn btn-light btn-lg rounded-circle p-4 shadow text-primary" data-bs-toggle="modal" data-bs-target="#video-round" aria-label="Watch the introduction"> <svg viewBox="0 0 24 24" width="2em" height="2em" fill="currentColor" stroke="none" aria-hidden="true" focusable="false"> <path d="M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z"/> </svg> </button> </div> </div> <div class="modal fade" id="video-round" tabindex="-1" aria-labelledby="video-round-title" aria-hidden="true" > <div class="modal-dialog modal-xl modal-dialog-centered"> <div class="modal-content"> <div class="modal-header"> <h1 class="modal-title" id="video-round-title">Introduction</h1> <button type="button" class="btn-close" aria-label="Close" data-bs-dismiss="modal"></button> </div> <div class="modal-body p-0"> <div class="ratio ratio-16x9"> <iframe class="border-0" title="Introduction" data-video-src="https://www.youtube-nocookie.com/embed/M7lc1UVf-VE" allow="autoplay; encrypted-media; picture-in-picture; fullscreen" referrerpolicy="strict-origin-when-cross-origin"></iframe> </div> </div> </div> </div> </div>
A compact pill with the play circle and the video title for narrow screens, where the round control would crowd the text.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31<div class="d-flex align-items-center justify-content-center bg-dark bg-gradient py-5 px-3"> <button type="button" class="btn rounded-pill d-inline-flex align-items-center gap-3 p-0 pe-4 border-0 bg-white bg-opacity-25 text-white fw-semibold" data-bs-toggle="modal" data-bs-target="#video-labelled"> <span class="d-inline-flex rounded-circle bg-white p-3 shadow animate-breathe text-primary"> <svg viewBox="0 0 24 24" width="1.25em" height="1.25em" fill="currentColor" stroke="none" aria-hidden="true" focusable="false"> <path d="M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z"/> </svg> </span> Watch the introduction </button> </div> <div class="modal fade" id="video-labelled" tabindex="-1" aria-labelledby="video-labelled-title" aria-hidden="true" > <div class="modal-dialog modal-xl modal-dialog-centered"> <div class="modal-content"> <div class="modal-header"> <h1 class="modal-title" id="video-labelled-title">Introduction</h1> <button type="button" class="btn-close" aria-label="Close" data-bs-dismiss="modal"></button> </div> <div class="modal-body p-0"> <div class="ratio ratio-16x9"> <iframe class="border-0" title="Introduction" data-video-src="https://www.youtube-nocookie.com/embed/M7lc1UVf-VE" allow="autoplay; encrypted-media; picture-in-picture; fullscreen" referrerpolicy="strict-origin-when-cross-origin"></iframe> </div> </div> </div> </div> </div>
<div class="d-flex align-items-center justify-content-center bg-dark bg-gradient py-5 px-3"> <button type="button" class="btn rounded-pill d-inline-flex align-items-center gap-3 p-0 pe-4 border-0 bg-white bg-opacity-25 text-white fw-semibold" data-bs-toggle="modal" data-bs-target="#video-labelled"> <span class="d-inline-flex rounded-circle bg-white p-3 shadow animate-breathe text-primary"> <svg viewBox="0 0 24 24" width="1.25em" height="1.25em" fill="currentColor" stroke="none" aria-hidden="true" focusable="false"> <path d="M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z"/> </svg> </span> Watch the introduction </button> </div> <div class="modal fade" id="video-labelled" tabindex="-1" aria-labelledby="video-labelled-title" aria-hidden="true" > <div class="modal-dialog modal-xl modal-dialog-centered"> <div class="modal-content"> <div class="modal-header"> <h1 class="modal-title" id="video-labelled-title">Introduction</h1> <button type="button" class="btn-close" aria-label="Close" data-bs-dismiss="modal"></button> </div> <div class="modal-body p-0"> <div class="ratio ratio-16x9"> <iframe class="border-0" title="Introduction" data-video-src="https://www.youtube-nocookie.com/embed/M7lc1UVf-VE" allow="autoplay; encrypted-media; picture-in-picture; fullscreen" referrerpolicy="strict-origin-when-cross-origin"></iframe> </div> </div> </div> </div> </div>
No matching pages.
Restore the default appearance.