¾Ö´Ï¸ÞÀ̼ÇÀÇ ´Ü°èº° Á¦¾î¿¡ »ç¿ëµÇ´Â ½Ã°£°ªµéÀÇ ¸ñ·ÏÀ» ¹ÝȯÇϰųª ¼³Á¤ÇÑ´Ù.

Àμö
: (¼Ó¼º ¹®ÀÚ¿­)

¼Ó¼º°ªÀº ¾Ö´Ï¸ÞÀ̼ÇÀÇ ´Ü°èº° Á¦¾î¿¡ »ç¿ëµÇ´Â ½Ã°£°ªµéÀÇ ¸ñ·ÏÀ» ³ªÅ¸³»´Â ¹®ÀÚ¿­ÀÌ´Ù.

keyTimes ¼¼¹ÌÄÝ·Ð(;)À¸·Î ºÐ¸®µÈ ½Ã°£°ªµéÀÇ ¸ñ·Ï ¹®ÀÚ¿­Àº ¾Ö´Ï¸ÞÀÌ¼Ç ¿¤·¹¸àÆ®ÀÇ ºñ·ÊÀûÀÎ ´Ü¼ø Áö¼Ó½Ã°£ÀÇ Â÷ÀÌ(offset)¸¦ ³ªÅ¸³½´Ù. ¸ñ·ÏÀÇ °¢ Èļӽ𣰪Àº ¾ÕÀÇ °ªº¸´Ù´Â Å©´ø°¡ °°¾Æ¾ß ÇÑ´Ù. À¯È¿ÇÑ ½Ã°£°ªÀº 0°ú 1 »çÀÌÀÇ ºÎµ¿¼Ò¼öÁ¡ ¼öÄ¡ÀÌ´Ù.

ÀÌ ¼Ó¼ºÀº Àбâ/¾²±âÀÌ¸ç µðÆúÆ®°ªÀº ¾ø´Ù.

Ư±â

keyTimes ¸ñ·ÏÀÇ °¢ ½Ã°£Àº values ¼Ó¼º°ª¿¡ ÀÖ´Â ¸ñ·ÏÀÇ °ª¿¡ ÇØ´çÇÑ´Ù. keyTimes ¸ñ·ÏÀÇ ½Ã°£°ª °¹¼ö¿Í values ¾ÖÆ®¸®ºäÆ®ÀÌ °ªÀÇ °¹¼ö°¡ °°¾Æ¾ß ÇÑ´Ù.

¼±»óÀ̳ª ÆǸ·(spline) ¾Ö´Ï¸ÞÀ̼ǿ¡¼­ keyTimes ¸ñ·ÏÀÇ Ã¹¹ø° °ªÀº 0 À̾î¾ß ÇÏ°í, ¸¶Áö¸· °ªÀº 1 À̾î¾ß ÇÑ´Ù. ¸ñ·ÏÀÇ °¢ °ªÀº ¾Ö´Ï³×¹Ì¼Ç °¢ ´Ü°èÀÇ ½Ã°£À̸ç, ÁöÁ¤µÈ keyTimes »çÀÌ¿¡¼­ ¾Ö´Ï¸ÞÀÌ¼Ç µÈ´Ù.

discrete ¾Ö´Ï¸ÞÀ̼ǿ¡¼­µµ, ù¹ø° °ªÀº 0 À̾î¾ß ÇÑ´Ù. ¾Ö´Ï¸ÞÀÌ¼Ç ±â´ÉÀº keyTimes ¸ñ·ÏÀÇ ´ÙÀ½ ½Ã°£°ª±îÁö °¢ ´Ü°èÀÇ °ªÀ» »ç¿ëÇÑ´Ù.

calcMode ¼Ó¼ºÀÌ paced·Î ¼³Á¤µÇ¾î ÀÖÀ¸¸é keyTimes °ªÀº ¹«½ÃµÈ´Ù.

t:ANIMATEMOTION ¿¤·¹¸àÆ®¿¡¼­ keyTimesÀ» »ç¿ëÇÒ ¶§, calcMode ¾ÖÆ®¸®ºäÆ®¿¡ paced ÀÌ¿ÜÀÇ °ªÀ» ¼³Á¤ÇÏ¿©¾ß ÇÑ´Ù.

Àû¿ë
°³Ã¼scriptHTML±Ô°ÝIE
ÂüÁ¶
HTML+time, keySplines

ÀÌ ¼Ó¼ºÀº (¿µ¹®)SMIL 2.0(Synchronized Multimedia Integration Language)¿¡¼­ Á¤ÀǵǾú´Ù.


aniObj.currTimeState.simpleTime= 0
aniObj.currTimeState.activeTime= 0
keyTimes °ú keySplines

keySplines ¼Ó¼ºÀº ¾Ö´Ï¸ÞÀ̼ǵǴ °£°ÝÀ» Á¤ÀÇÇÏ´Â Bezier Á¦¾îÁ¡µéÀÇ ¸ñ·ÏÀÌ´Ù.
keyTimes ¼Ó¼ºÀº ¾Ö´Ï¸Þ´Ï¼Ç ÁøÇà °£°ÝÀÇ ½Ã°£°ªµéÀÇ ¸ñ·ÏÀÌ´Ù.

<HTML xmlns:t="urn:schemas-microsoft-com:time">
<HEAD>
<IMPORT namespace="t" implementation="#default#time2">
<STYLE>
.time{ behavior: url(#default#time2);}
.div1{position:relative; top:0px; height:50px; width:100px; background-color:yellow; text-align:center; font-size:16px;
  border:solid 2 red;color:blue;padding:5px}
</STYLE>
</HEAD>
<BODY>
aniObj.currTimeState.simpleTime=
<SPAN id="Timer1" class="time" dur=".1" repeatCount="indefinite" fill="hold"
  onrepeat="innerText=(aniObj.currTimeState.simpleTime);">0</SPAN><BR>
aniObj.currTimeState.activeTime=
<SPAN id="Timer2" class="time" dur=".1" repeatCount="indefinite" fill="hold"
  onrepeat="innerText=(aniObj.currTimeState.activeTime);">0</SPAN>

<DIV id="divObj" class="div1"> keyTimes °ú keySplines</DIV>
<T:animateMotion id="aniObj" begin="1;butObj.click+1" dur="6s" autoReverse="true" targetElement="divObj" fill="hold"
  calcMode="spline" keySplines="0 1 .5 1;.5 1 0 1" keyTimes="0;.5;1" values="0,0;250,100;400,-150" />
<P><BUTTON id="butObj">´Ù½Ã ½ÃÀÛ</BUTTON></P>
</BODY>
</HTML>