Skip to main content

cssTransition

ParameterTypeRequiredDefaultDescription
enterstring-The class name that will be used when the toast enter
exitstring-The class name that will be used when the toast exit
appendPositionboolfalseAppend or not the position to the class name: yourClassName--top-right, yourClassName--bottom-left...
collapsebooltrueCollapse toast after exit animation
collapseDurationnumber300The collapse duration

Usage

import { cssTransition } from 'react-toastify';

const Zoom = cssTransition({
enter: 'zoomIn',
exit: 'zoomOut',
appendPosition: false,
collapse: true,
collapseDuration: 300
});