Flipbox allows you to place two elements back-to-back and then flip between them.
<x-flipbox>
<div>Front</div>
<div>Back</div>
</x-flipbox>
var flipbox = document.createElement('x-flipbox');
flipbox.flipDirection = "up"; // up, down, left, right
flipbox.toggle();