Changing Text Style

The style of text can be changed at any time with the textStyle property. However, the value cannot be animated over a duration. The value will change instantly.

This demonstration has one script with seven actions. The actions run in order, one after the other. Each action waits for a one second delay before running.

story = {
  item: {
    text: "Style",
    init: {font:40},
    actions:[
      {delay:1, style:"bold"},
      {delay:1, style:"italic"},
      {delay:1, style:"under"},
      {delay:1, style:"through"},
      {delay:1, style:"over"},
      {delay:1, style:"caps"},
      {delay:1, style:false}
    ]
  }
};