blob: 38b0d44fb1f0026e39c5201852faed50e77d0a66 [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<title>CSS Motion Path: ray paths with contain</title>
<style>
#container {
width: 300px;
height: 300px;
}
#target {
position: relative;
left: 100px;
top: 100px;
width: 100px;
height: 100px;
background-color: lime;
/* The movement is about sqrt(150^2 - 50^2) - 50 */
transform: rotate(-45deg) translate(91.42px);
}
</style>
</head>
<body>
<div id="container">
<div id="target"></div>
</div>
</body>
</html>