You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Adds a CSS class which will set the overflow property to 'clip' (or 'hidden')
71
-
* @param {HTMLElement} el - The DOM element which will receive the CSS class
72
-
*/
73
-
constsetOverflowHidden=el=>{
74
-
el.classList.add(CLASS_NAMES.overflowHidden);
75
-
};
76
-
77
-
/**
78
-
* Removes the CSS class which sets the overflow property to 'clip' (or 'hidden')
79
-
* @param {HTMLElement} el - The DOM element with the CSS class to remove
80
-
*/
81
-
constremoveOverflowHidden=el=>{
82
-
el.classList.remove(CLASS_NAMES.overflowHidden);
83
-
};
84
-
85
65
/**
86
66
* Handles parent element width/height transitions during child element's animation
87
67
* @param {{
88
68
* element: HTMLElement,
89
69
* action: string,
90
70
* widthTransition: boolean,
91
71
* heightTransition: boolean,
92
-
* overflowHidden: boolean
93
72
* }} args - Containing all the information needed to initiate parent's dimensions transitions
94
73
* @returns An object with the dimension(s) to transition and the parent element's measurements before and after the child element's animation is performed
0 commit comments