offset-path-ray-013-ref.html (584B)
1 <!doctype html> 2 <meta charset="utf-8"> 3 <title>CSS Motion Path test reference: ray() path with position and offset-position</title> 4 <link rel="author" title="Daniil Sakhapov" href="sakhapov@google.com"> 5 6 <style> 7 #outer { 8 top: 100px; 9 left: 100px; 10 position: relative; 11 width: 600px; 12 height: 400px; 13 } 14 #box { 15 background-color: green; 16 position: relative; 17 top: 100px; 18 left: 100px; 19 transform: translate(-50px, -130px); 20 width: 100px; 21 height: 100px; 22 } 23 </style> 24 25 <div id="outer"> 26 <div id="inner"> 27 <div id="box"></div> 28 </div> 29 </div>