You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
offset-path:ray(105deg farthest-corner at 0px0px);
111
+
animation-direction: alternate;
112
+
animation-duration:2.5s;
113
+
}
114
+
</style>
115
+
</head>
116
+
<body>
117
+
<h1>CSS: offset-path, ray() 함수 예시</h1>
118
+
119
+
<p>모든 예시에서 <code>offset-distance</code> 속성을 0%에서 100%로 애니메이션화하여 요소가 경로를 따라 움직이도록 합니다. 투명도는 20%에서 100%로 변화합니다.</p>
120
+
121
+
<h2>예시 0: 기본 동작</h2>
122
+
<p>1) offset-path 속성을 명시하지 않으면 기본값은 none이며, offset-distance는 position의 left, top, right, bottom과 같은 속성을 사용합니다. coord-box를 사용하여 박스의 어떤 부분을 기준으로 경로를 그릴지 선택할 수 있습니다.</p>
123
+
<p>2) basic-shape 기본 모양 함수를 사용하여 경로를 그릴 수 있습니다.</p>
<p>ray의 기본 위치는 50%, 50%입니다. angle은 시작 위치부터 시작되는 path가 어떤 각도로 이동할지 결정합니다. 0도는 y축이 올라가는 기준이며, 시계 방향으로 각도가 증가합니다.(conic-gradient와 동일) 또한 요소가 해당 축을 top으로 맞닿도록 회전이 되어있는 모습을 볼 수 있습니다.</p>
0 commit comments