Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
toggleCollapse = (event) => {
const { isCollapsed } = this.state;
Velocity.animate(this.boxBody.current, isCollapsed ? 'slideDown' : 'slideUp', {
duration: 500,
easing: 'easeInSine',
complete: this.toggleAnimationComplete
});
}
removeBox = (event) => {
Velocity.animate(this.box.current, 'slideUp', {
duration: 500,
easing: 'easeInSine',
complete: this.removeAnimationComplete
});
}
removeBox = () =>{
Velocity.animate(this.box.current, 'slideUp', {
duration: 500,
easing: 'easeInSine',
complete: this.removeAnimationComplete
});
}
toggleCollapse = (e) =>{
const { isCollapsed } = this.state;
Velocity.animate(this.boxBody.current, isCollapsed ? 'slideDown' : 'slideUp', {
duration: 500,
easing: 'easeInSine',
complete: this.toggleAnimationComplete
});
}