OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <title>CSS Motion Path: path(string) paths</title> | 4 <title>CSS Motion Path: path(string) paths</title> |
5 <link rel="author" title="Eric Willigers" href="mailto:ericwilligers@google.
com"> | 5 <link rel="author" title="Eric Willigers" href="mailto:ericwilligers@chromiu
m.org"> |
6 <link rel="help" href="https://drafts.fxtf.org/motion-1/#offset-path-propert
y"> | 6 <link rel="help" href="https://drafts.fxtf.org/motion-1/#offset-path-propert
y"> |
7 <link rel="match" href="offset-path-string-ref.html"> | 7 <link rel="match" href="offset-path-string-ref.html"> |
8 <meta name="assert" content="This tests that path(<string>) generates a rota
tion and translation."> | 8 <meta name="assert" content="This tests that path(<string>) generates a rota
tion and translation."> |
9 <style> | 9 <style> |
10 #target { | 10 #target { |
11 position: absolute; | 11 position: absolute; |
12 left: 300px; | 12 left: 300px; |
13 top: 0px; | 13 top: 0px; |
14 width: 300px; | 14 width: 300px; |
15 height: 200px; | 15 height: 200px; |
16 background-color: lime; | 16 background-color: lime; |
17 transform-origin: 0px 0px; | 17 transform-origin: 0px 0px; |
18 offset-path: path('m 0 0 v 200'); | 18 offset-path: path('m 0 0 v 200'); |
19 offset-distance: 120px; | 19 offset-distance: 120px; |
20 } | 20 } |
21 </style> | 21 </style> |
22 </head> | 22 </head> |
23 <body> | 23 <body> |
24 <div id="target"></div> | 24 <div id="target"></div> |
25 </body> | 25 </body> |
26 </html> | 26 </html> |
OLD | NEW |