Skip to content

Instantly share code, notes, and snippets.

@svinkle
Created September 5, 2017 20:14
Show Gist options
  • Save svinkle/e093626f74418dc98f187978d1f4e5b7 to your computer and use it in GitHub Desktop.
Save svinkle/e093626f74418dc98f187978d1f4e5b7 to your computer and use it in GitHub Desktop.
HTML to toggle a video play/pause control.
<!-- Untoggled state -->
<button class="toggle-button player-button font-bold" aria-pressed="false" aria-label="Pause video">
<span class="close-icon font-bold" aria-hidden="true">×</span>
</button>
<!-- Toggled state -->
<button class="toggle-button player-button font-bold" aria-pressed="true" aria-label="Play video">
<span class="close-icon font-bold" aria-hidden="true">×</span>
</button>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment