Position

Items can be positioned in 3D using the position property. This example demonstrates how an item’s position can be changed on only some of the axes using the object format. If the values were set with an array instead, all of the axis values would need to be provided.

story = {
  item:  {
    text:"pos",
    init: {
      color:"#567",
      font:25,
      pos:[-20,-20,20]
    },
    actions: [
      {anim:1, pos:{z:-20}},
      {anim:1, pos:{x:20}},
      {anim:1, pos:{z:20}},
      {anim:1, pos:{y:20}},
      {anim:1, pos:{z:-20}},
      {anim:1, pos:{x:-20}},
      {anim:1, pos:{z:20}},
      {anim:1, pos:{y:-20}}
    ]
  }
};