This animation is implemented based on <Slider> and <ExternCommand>. It delays the execution of the screen unlock command after a user triggers unlock. The key point is to add the delay parameter to <ExternCommand>.
<ExternCommand command="unlock" delay=""/>
Parameter | Type | Mandatory | Description |
|---|---|---|---|
command | String | Yes | Common command tag, which is used to send an unlock command to an external program. |
delay | Number | Yes | Common command tag, which is used to send an unlock command to an external program. The parameter indicates unlock delay, in milliseconds. |
Execute the screen unlock command 3000 milliseconds after a user triggers unlock.
<Slider name="unlocker" bounceInitSpeed="2000" bounceAcceleration="3000">
<StartPoint x="380" y="#screen_height-1970+1740" w="300" h="160">
</StartPoint>
<EndPoint x="380" y="#screen_height-1970+1740-230" w="30" h="100">
<Path x="380" y="#screen_height-1970+1740" w="300" h="160">
<Position x="0" y="0"/>
<Position x="0" y="-180"/>
</Path>
<Trigger>
<ExternCommand command="unlock" delay="3000"/>
</Trigger>
</EndPoint>
</Slider>