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
* @param {function} [opt.callback] Optional callback function once the animation is complete.
234
235
* @returns {object} Animation token
235
236
*/
236
-
exportletslideVertical=function(el,show,opt={}){
237
+
exportletslideVertical=function(el,show,opt){
238
+
returninternalSlide(false,el,show,opt);
239
+
};
240
+
241
+
/**
242
+
* Slides an element horizontally while fading it in.
243
+
* @param {HTMLElement} el HTML element to slide up/down.
244
+
* @param {boolean} show Flag if element should be slide up (show), will slide down (hide) if false.
245
+
* @param {object} [opt] Optional parameters
246
+
* @param {number} [opt.duration] Optional fade duration in milliseconds.
247
+
* @param {number} [opt.reset] Optional reset flag. If true, opacity and position will be reset. If false, animation will continue from current height and opacity. Default is true.
248
+
* @param {function} [opt.callback] Optional callback function once the animation is complete.
249
+
* @returns {object} Animation token
250
+
*/
251
+
exportletslideHorizontal=function(el,show,opt){
252
+
returninternalSlide(true,el,show,opt);
253
+
};
254
+
255
+
/**
256
+
* Slides an element horizontally while fading it in.
257
+
* @param {boolean} hori Flag if slide should be horizontal instead of vertical.
258
+
* @param {HTMLElement} el HTML element to slide up/down.
259
+
* @param {boolean} show Flag if element should be slide up (show), will slide down (hide) if false.
260
+
* @param {object} [opt] Optional parameters
261
+
* @param {number} [opt.duration] Optional fade duration in milliseconds.
262
+
* @param {number} [opt.reset] Optional reset flag. If true, opacity and position will be reset. If false, animation will continue from current height and opacity. Default is true.
263
+
* @param {function} [opt.callback] Optional callback function once the animation is complete.
0 commit comments