Skip to content
On this page

<two-up>

One of my favorite web components is from Google called <two-up>

html
<two-up>
	<div><img src="before.jpg" alt=""></div>
	<div><img src="after.jpg" alt=""></div>
</two-up>

<script src="path/to/two-up.js"></script>
<two-up>
	<div><img src="before.jpg" alt=""></div>
	<div><img src="after.jpg" alt=""></div>
</two-up>

<script src="path/to/two-up.js"></script>

Licenced MIT