Skip to content

Commit 5992784

Browse files
authored
feat(dimmer): support individual show/hide transition
This PR offers the same possibility to provide individual transform methods for show and hide animations as we have for toast So in addition to transition:'fade' (which still works so stays backward compatible), you can now use the same as in toast transition: { showMethod: 'fade', hideMethod: 'zoom' }
1 parent a432a81 commit 5992784

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/definitions/modules/dimmer.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ $.fn.dimmer = function(parameters) {
255255
displayType : settings.useFlex
256256
? 'flex'
257257
: 'block',
258-
animation : settings.transition + ' in',
258+
animation : (settings.transition.showMethod || settings.transition) + ' in',
259259
queue : false,
260260
duration : module.get.duration(),
261261
useFailSafe : true,
@@ -302,7 +302,7 @@ $.fn.dimmer = function(parameters) {
302302
displayType : settings.useFlex
303303
? 'flex'
304304
: 'block',
305-
animation : settings.transition + ' out',
305+
animation : (settings.transition.hideMethod || settings.transition) + ' out',
306306
queue : false,
307307
duration : module.get.duration(),
308308
useFailSafe : true,

0 commit comments

Comments
 (0)