Last active
May 12, 2017 00:01
-
-
Save blasten/28677b7bf5a5ec91c1c588c33566206f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template tag="video-playback-control"> | |
<style> | |
:host { | |
display: block; | |
} | |
#playButton::slotted { | |
color: red; | |
} | |
</style> | |
<slot id="playButton" name="play-button"></slot> | |
</template> | |
<template tag="video-player"> | |
<style> | |
:host { | |
display: block; | |
} | |
.video { | |
background-color: black; | |
} | |
</style> | |
<div class="video"> | |
<slot></slot> | |
</div> | |
<video-playback-control> | |
<button slot="play-button"></button> | |
</video-playback-control> | |
</template> | |
<!-- usage --> | |
<video-player> | |
<video> | |
<source src="movie.mp4" type="video/mp4"> | |
</video> | |
</video-player> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment