MCPcopy Create free account
hub / github.com/ionic-team/ionic-framework / afterTransition

Function afterTransition

core/src/utils/transition/index.ts:96–107  ·  view source on GitHub ↗
(opts: TransitionOptions)

Source from the content-addressed store, hash-verified

94};
95
96const afterTransition = (opts: TransitionOptions) => {
97 const enteringEl = opts.enteringEl;
98 const leavingEl = opts.leavingEl;
99 enteringEl.classList.remove('ion-page-invisible');
100 enteringEl.style.removeProperty('pointer-events');
101 if (leavingEl !== undefined) {
102 leavingEl.classList.remove('ion-page-invisible');
103 leavingEl.style.removeProperty('pointer-events');
104 }
105
106 focusController.setViewFocus(enteringEl);
107};
108
109const getAnimationBuilder = async (opts: TransitionOptions): Promise<AnimationBuilder | undefined> => {
110 if (!opts.leavingEl || !opts.animated || opts.duration === 0) {

Callers 1

transitionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected