Source code

Revision control

Copy as Markdown

Other Tools

<!DOCTYPE html>
<title>View transitions: capture elements and then change overflow (ref)</title>
<style>
body { background: pink }
#target {
position: relative;
background: green;
left: 10px;
width: 100px;
height: 100px;
view-transition-name: target;
}
#target.toggle {
outline: 300px solid transparent;
}
</style>
<div id=target class=toggle></div>