hyTags
HomeHome DocumentationDocumentation

style-without-animation

Applies style changes immediately without animation
Parameter
Type
Description
return
Type?
Optional return value from the commands block
commands
Commands
The commands block containing style changes to apply instantly
return
void
A promise that resolves immediately after applying changes
Test Case:Apply style without animation
    <div></div>
    
    <style-without-animation>
      <style-set name="opacity" value="0.5">
    </style-without-animation>
    <style-get name="opacity">
    <assert-equal value="0.5" type="string">
    
    👆 Try to change something!
  • Test succeeded Test failed