Animate object to move off page

Comments

1 comment

  • Avatar
    fulfilment

    Answer:

    This is possible, you will have to modify the .anim files again for this; https://support.oomphhq.com/entries/21762236-Custom-Animations. To achieve this you will have two files, named however you like but for explanation purposes I will call them CenterToLeft and CenterToRight. The type that you would be modifying would be Center. The from value should be 0.0,0.0 and you change the 'To' value to - values for the CenterToLeft file, and the 'To' value to + values for the CenterToRight file.

    {
    "animations": [
    {
    "duration": 1,
    "delay": 0,
    "options": "",
    "type": "center",
    "from": "{0.0,0.0}",
    "to": "{-width,0.0}",
    "completion": ""
    }
    ]
    }

    The above is an example of CenterToLeft. You can see that we used "-width" keyword here, you could also specify this in pixels if you wished.

Please sign in to leave a comment.

Powered by Zendesk