File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
playground/components/mockup Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -52,11 +52,17 @@ function showCustomToast() {
52
52
},
53
53
transition: {
54
54
enterActiveClass: ' transition-all duration-300 ease-out' ,
55
- enterFromClass: ' transform translate-y-1 opacity-0' ,
55
+ enterFromClass:
56
+ props .positionY === ' top'
57
+ ? ' transform -translate-y-1 opacity-0'
58
+ : ' transform translate-y-1 opacity-0' ,
56
59
enterToClass: ' transform translate-y-0 opacity-100' ,
57
60
leaveActiveClass: ' transition duration-300 ease-in' ,
58
61
leaveFromClass: ' transform translate-y-0 opacity-100' ,
59
- leaveToClass: ' transform translate-y-1 opacity-0' ,
62
+ leaveToClass:
63
+ props .positionY === ' top'
64
+ ? ' transform -translate-y-1 opacity-0'
65
+ : ' transform translate-y-1 opacity-0' ,
60
66
},
61
67
})
62
68
}
You can’t perform that action at this time.
0 commit comments