offset-path-ray-009-ref.html (480B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <title>CSS Motion Path: ray paths</title> 5 <style> 6 #container { 7 width: 200px; 8 height: 200px; 9 } 10 #target { 11 position: relative; 12 left: 130%; 13 top: 60%; 14 width: 40px; 15 height: 40px; 16 background-color: lime; 17 transform: translateY(60px); 18 } 19 </style> 20 </head> 21 <body> 22 <div id="container"> 23 <div id="target"></div> 24 </div> 25 </body> 26 </html>