Skip to content
fr0m edited this page Mar 19, 2014 · 8 revisions

Background.tick()

Background.tick([source, callback]);
Background.tick([options]);
  • options
    Type : PlainObject
    • source
      Type : PlainObject
      • imageUrl
        • Type : String
        • Default : None
        • Values : URL of an image
        • define the background-image
      • jsonString
        • Type : String
        • Default : None
        • Values : URL return in JSON format or String in JSON format
        • define the background and how it will change by time
      • json
        • Type : Object
        • Default : None
        • Values : JSON Object
        • define the background and how it will change by time
    • duration
      • Type : String
      • Default : "1s"
      • Values : "xs"
      • define the duration of the animation
    • easeType
      • Type : String
      • Default : "ease-out"
      • Values : "ease", "ease-in", "ease-out", "ease-in-out", "linear", "step-start", "step-end"
      • define the ease type of the animation
    • callback
      • Type : Function
      • Default : None
      • Values : a function run after the background slide animation ended
      • define the callback function of the animation

Clone this wiki locally