Is it possible to use JS to change a Transition effect based on the option a user selects? I’d like to use this change the transition based on whether the user selects the forward or back button.
Example:
Click next and slide Transitions using push from right
Click Back and slide Transitions using push from left
Yes, it’s now a JavaScript API in version 8.
For example:
// set transition option based on a variable
var direction;
if (prez.variable('direction') == 'left')
direction = AP.EffectDirection.LEFT;
else
direction = AP.EffectDirection.RIGHT;
// show next slide with custom transition
prez.nextSlide({
transition: AP.TransitionType.PUSH,
duration: 500,
direction: direction
});
For more information, please refer to showSlideAt(index, options) API in the user manual. (page 253, Custom JavaScript in HTML5 Output section, UM version 8)