Slide Transition Service
The Slide Transition Service provides functionality to manage and execute slide transitions in a deck or presentation.
Methods
runSlideTransitionOnSlideById(slideId, slideTransitionOptions, isInTransition, isForwards)
Description
- Runs a slide transition animation on a specific slide identified by its ID.
Return Value: Promise
Options:
slideId: String- The ID of the slide to transitionslideTransitionOptions: Object- Configuration options for the transition:animationType: String- Type of animation (e.g., 'slide', 'fade', 'none')animationDirection: String- Direction of animation ('horizontal' or 'vertical')animationDuration: Number- Duration of animation in secondsanimationDelay: Number- Delay before animation starts in secondsanimationEase: String- Easing function for the animation
isInTransition: Boolean- Whether the transition is an entrance (true) or exit (false) animationisForwards: Boolean- Whether the transition is moving forwards (true) or backwards (false) in the slide order
Code Example
const slideTransitionOptions = {
animationType: 'slide',
animationDirection: 'horizontal',
animationDuration: 0.3,
animationDelay: 0,
animationEase: 'linear'
};
await digideckCore.slideTransitionService.runSlideTransitionOnSlideById(slideId, slideTransitionOptions, true, true);
Supported Animation Types
The service supports the following animation types:
-
Slide - Slides the content in/out from different directions
- Horizontal: Left/Right
- Vertical: Top/Bottom
-
Fade - Fades the content in/out
-
None - No animation, immediate transition