Warning, /multimedia/kmplayer/tests/animate.smil is written in an unsupported language. File is not indexed.
0001 <!-- test for moving a region with the animate element --> 0002 <smil> 0003 <head> 0004 <layout> 0005 <root-layout width="400" height="300" background-color="SeaGreen"/> 0006 <region top="48.5%" bottom="48.5%" background-color="white"/> 0007 <region left="48.5%" right="48.5%" background-color="white"/> 0008 <region id="region1" left="5%" top="10%" right="5%" bottom="10%"/> 0009 <region id="region2" left="5%" top="10%" width="20%" height="20%" 0010 background-color="yellow" backgroundOpacity="70" 0011 showBackground="whenActive"/> 0012 <region id="regimg1"/> 0013 </layout> 0014 <transition id="fade1" dur="1" type="fade"/> 0015 </head> 0016 <body> 0017 <par> 0018 <img dur="40" id="img" src="../icons/48-apps-kmplayer.png" 0019 region="regimg1" left="25" top="10" rn:mediaOpacity="40%" 0020 transIn="fade1" transOut="fade1"/> 0021 <animateMotion target="img" dur="20" calcMode="spline" repeat="2" 0022 values="25,10;300,45;25,85;300,125;25,165;300,205;25,80;25,10" 0023 keyTimes="0;.1;.2;.4;.6;.8;.9;1" 0024 keySplines=".5 0 .5 1;0 .75 .25 1;0 .75 .25 1;.5 0 .5 1;.5 0 .5 1;0 .75 .25 1;.5 0 .5 1"/> 0025 <par begin="2"> 0026 <img dur="40" id="img2" src="../icons/48-apps-kmplayer.png" 0027 region="regimg1" left="25" top="10" rn:mediaOpacity="40%" 0028 transIn="fade1" transOut="fade1"/> 0029 <animateMotion target="img2" dur="20" calcMode="spline" repeat="2" 0030 values="25,10;300,45;25,85;300,125;25,165;300,205;25,80;25,10" 0031 keyTimes="0;.1;.2;.4;.6;.8;.9;1" 0032 keySplines=".5 0 .5 1;0 .75 .25 1;0 .75 .25 1;.5 0 .5 1;.5 0 .5 1;0 .75 .25 1;.5 0 .5 1"/> 0033 </par> 0034 <par begin="4"> 0035 <img dur="40" id="img3" src="../icons/48-apps-kmplayer.png" 0036 region="regimg1" left="25" top="10" rn:mediaOpacity="40%" 0037 transIn="fade1" transOut="fade1"/> 0038 <animateMotion target="img3" dur="20" calcMode="spline" repeat="2" 0039 values="25,10;300,45;25,85;300,125;25,165;300,205;25,80;25,10" 0040 keyTimes="0;.1;.2;.4;.6;.8;.9;1" 0041 keySplines=".5 0 .5 1;0 .75 .25 1;0 .75 .25 1;.5 0 .5 1;.5 0 .5 1;0 .75 .25 1;.5 0 .5 1"/> 0042 </par> 0043 <seq> 0044 <par> 0045 <text id="text1" src="data:,8,8%20animateMotion%20by%2032x32%20and%20back" 0046 region="region1" left="8" top="8" dur="5" 0047 mediaBackgroundOpacity="70%"/> 0048 <animateMotion target="text1" begin="1" dur=".5" by="32,32" fill="freeze"/> 0049 <animateMotion target="text1" begin="3" dur=".5" by="-32,-32" fill="freeze"/> 0050 </par> 0051 <par> 0052 <text id="text2" src="data:,20%25,75%25%0AanimateMotion%0Ato%2040%25,20%25%0Aback%20to%20150,20" 0053 region="region1" left="20%" top="75%" dur="5" 0054 mediaBackgroundOpacity="70%"/> 0055 <animateMotion target="text2" begin="1" dur=".5" to="40%,20%" fill="freeze"/> 0056 <animateMotion target="text2" begin="3" dur=".5" to="150,20" fill="freeze"/> 0057 </par> 0058 <par> 0059 <text id="text3" src="data:,8,8%0AanimateMotion%0Afrom%2040%25,20%25%0Aby%2040%25,-20%25" 0060 region="region1" left="8" top="8" dur="3" 0061 mediaBackgroundOpacity="70%"/> 0062 <animateMotion target="text3" begin="1" dur=".5" 0063 from="20%,75%" by="40%,-20%" fill="freeze"/> 0064 </par> 0065 <par> 0066 <text id="text4" src="data:,8,8%0AanimateMotion%0Afrom%2010,150%0Ato%20150,10" 0067 region="region1" left="8" top="8" dur="3" 0068 mediaBackgroundOpacity="70%"/> 0069 <animateMotion target="text4" begin="1" dur=".5" 0070 from="10,150" to="150,10" fill="freeze"/> 0071 </par> 0072 <par> 0073 <text id="text6" src="data:,lineair%20animateMotion%0Avalues%2020,20;150,5;160,160" 0074 region="region1" left="8" top="8" dur="5" 0075 mediaBackgroundOpacity="70%"/> 0076 <animateMotion target="text6" begin="2" dur="2" 0077 values="20,20;150,5;160,170" fill="freeze"/> 0078 </par> 0079 <par> 0080 <text id="text7" src="data:,lineair%20animateMotion%0Avalues%2020,20;160,35;140,160%0AkeyTimes0;0.8;1" 0081 region="region1" left="8" top="8" dur="5" 0082 mediaBackgroundOpacity="70%"/> 0083 <animateMotion target="text7" begin="2" dur="2" fill="freeze" 0084 values="20,20;160,35;140,160" keyTimes="0;0.8;1"/> 0085 </par> 0086 <par> 0087 <text id="text8" src="data:,spline%20animateMotion%0Avalues%2020,20;160,35;140,160%0AkeyTimes0;0.5;1%0AkeySplines%20.5%200%20.5%201;0%20.75%20.25%201" 0088 region="region1" left="8" top="8" dur="5" 0089 mediaBackgroundOpacity="70%"/> 0090 <animateMotion target="text8" begin="1" dur="3" calcMode="spline" 0091 values="20,20;160,35;140,160" fill="freeze" 0092 keyTimes="0;0.5;1" 0093 keySplines=".5 0 .5 1;0 .75 .25 1"/> 0094 </par> 0095 <par> 0096 <text id="text9" src="data:,discrete%20animateMotion%0Avalues%2020,20;160,35;140,160" 0097 region="region1" left="8" top="8" dur="4" 0098 mediaBackgroundOpacity="70%"/> 0099 <animateMotion target="text9" begin="1" dur="3" calcMode="discrete" 0100 values="20,20;160,35;140,160" fill="freeze"/> 0101 </par> 0102 <par> 0103 <text id="text10" src="data:,discrete%20animateMotion%0Avalues%2020,20;160,35;140,160%0AkeyTimes0;0.5;.7" 0104 region="region1" left="8" top="8" dur="4" 0105 mediaBackgroundOpacity="70%"/> 0106 <animateMotion target="text10" begin="1" dur="3" calcMode="discrete" 0107 values="20,20;160,35;140,160" 0108 keyTimes="0;0.5;.7" fill="freeze"/> 0109 </par> 0110 <par> 0111 <text left="0" id="text5" src="data:,animateMotion%20on%20region" 0112 region="region2" dur="10" fontPtSize="7"> 0113 <animateMotion begin="2.7" dur=".3" calcMode="spline" fill="freeze" 0114 from="0,0" to="25%, 0%" keySplines="0 .75 .25 1"/> 0115 <animateMotion begin="4.7" dur=".3" calcMode="spline" fill="freeze" 0116 from="25%,0%" to="25%, 25%" keySplines="0 .75 .25 1"/> 0117 <animateMotion begin="6.7" dur=".3" calcMode="spline" fill="freeze" 0118 from="25%,25%" to="0%, 25%" keySplines="0 .75 .25 1"/> 0119 <animateMotion begin="8.0" dur=".4" calcMode="spline" fill="freeze" 0120 from="0%,25%" to="0%, 0%" keySplines="0 .75 .25 1"/> 0121 </text> 0122 <animateMotion target="region2" begin="1" dur="1.7" calcMode="spline" fill="freeze" 0123 from="5%,10%" to="55%, 15%" keySplines=".75 0 1 .25"/> 0124 <animateColor target="region2" begin="2.7" dur=".4" calcMode="spline" 0125 keyTimes="0;0.3;1" values="yellow;red;yellow" 0126 keySplines=".25 0 .75 1;.25 0 .75 1"/> 0127 <animateMotion target="region2" begin="3" dur="1.7" calcMode="spline" 0128 to="65%,60%" keySplines=".75 0 1 .25" fill="freeze"/> 0129 <animateColor target="region2" begin="4.7" dur=".4" calcMode="spline" 0130 keyTimes="0;0.3;1" values="yellow;red;yellow" 0131 keySplines=".25 0 .75 1;.25 0 .75 1"/> 0132 <animateMotion target="region2" begin="5" dur="1.7" calcMode="spline" 0133 by="-45%,10%" keySplines=".75 0 1 .25" fill="freeze"/> 0134 <animateColor target="region2" begin="6.7" dur=".4" calcMode="spline" 0135 keyTimes="0;0.3;1" values="yellow;red;yellow" 0136 keySplines=".25 0 .75 1;.25 0 .75 1"/> 0137 <animateMotion target="region2" begin="7" dur="1.8" calcMode="spline" fill="freeze" 0138 from="20%,70%" by="-15%,-60%" keySplines="1 0 0 1"/> 0139 </par> 0140 </seq> 0141 </par> 0142 </body> 0143 </smil>