Created
August 27, 2019 09:08
-
-
Save rowan-m/b7bad52365af928f77a71674fcd57780 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
const template = document.createElement('template'); | |
template.innerHTML = ` | |
<style> | |
#container { | |
--angle: 0rad; | |
transform: rotate(var(--angle)); | |
} | |
</style> | |
<div id="container" part="container"> | |
<slot></slot> | |
</div>`; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment