hyTags
HomeHome DocumentationDocumentation

style-complete

Registers commands to execute when the current animation completes
Parameter
Type
Description
commands
Commands
The commands block to execute after animation completion
return
void
No return value
Test Case:Execute commands on animation complete
    <div></div>
    
    <style-animate duration="0.01">
      <style-set name="opacity" value="0.5">
      <style-complete>
        <style-set name="color" value="red">
      </style-complete>
    </style-animate>
    <style-get name="color">
    <assert-equal value="red" type="string">
    
    👆 Try to change something!
  • Test succeeded Test failed