• Register
Welcome to the in5 Answer Exchange! This a place to get answers about in5 (InDesign to HTML5) and make requests.
0 votes
Have exported page with some animated object with in5.

Now, I would like to start animation of specific page object with my custom JavaScript.

JS is not a problem, but now want to know the function to call, to start in5 animation on specific page object.
in how_to by (540 points)
    

1 Answer

0 votes

The cleanest way to do this is probably to assign the animation to a button within InDesign, make the button hidden, then trigger the button with JavaScript in the output, e.g.,

$(function(){
   $('button[name="PUT_BUTTON_NAME_FROM_ID_HERE"]').trigger('click');
});
by (194k points)