blob: 3e99530eb305f0917eea26849cd1c9b329e26968 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
<!DOCTYPE html>
<html>
<head>
<title>CSS Motion Path Referecne: url() with border-box</title>
<style>
#outer {
width: 300px;
height: 100px;
padding: 50px;
border: 50px solid black;
}
#target {
width: 50px;
height: 50px;
background-color: green;
transform: translate(25px, -25px);
border-radius: 50% 50% 0 0;
}
</style>
</head>
<body>
<div id="outer">
<div id="target"></div>
</div>
</body>
</html>
|