You cannot select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
	
	
		
			13 lines
		
	
	
		
			432 B
		
	
	
	
		
			JavaScript
		
	
			
		
		
	
	
			13 lines
		
	
	
		
			432 B
		
	
	
	
		
			JavaScript
		
	
export const reflow = node => node.scrollTop;
 | 
						|
export function getTransitionProps(props, options) {
 | 
						|
  const {
 | 
						|
    timeout,
 | 
						|
    easing,
 | 
						|
    style = {}
 | 
						|
  } = props;
 | 
						|
  return {
 | 
						|
    duration: style.transitionDuration ?? (typeof timeout === 'number' ? timeout : timeout[options.mode] || 0),
 | 
						|
    easing: style.transitionTimingFunction ?? (typeof easing === 'object' ? easing[options.mode] : easing),
 | 
						|
    delay: style.transitionDelay
 | 
						|
  };
 | 
						|
} |