Semantic-ui: delay between two transitions will be ignored

Created on 8 Jun 2017  路  5Comments  路  Source: Semantic-Org/Semantic-UI

How can I insert a pause between 2 transitions.

delay(3000) is ignored:

$('.message').transition('drop').delay(3000).transition('drop');

How can i drop a message, wait 3 sec. and drop the message away?

Thanks

Usage Question

Most helpful comment

@koup Sorry about that, add .transition.hidden classes to your message to hide it initially, then do it the other way around:

$('.ui.message')
  .transition('drop')
  .transition({
    animation: 'drop',
    interval: 3000,
  })

All 5 comments

Hi @koup, you can use interval property:

$('.ui.message')
  .transition({
    animation: 'drop',
    interval: 3000,
  })
  .transition('drop')

Hi Banandrew

Unfortunately this does not work. The message disappears immediately.

Thanks

@koup Sorry about that, add .transition.hidden classes to your message to hide it initially, then do it the other way around:

$('.ui.message')
  .transition('drop')
  .transition({
    animation: 'drop',
    interval: 3000,
  })

Many thanks, now it works 馃槈

you can use this ->
jQuery('#segment').transition('tada',1500);

teda is our animation and 1500 is time in ms

Was this page helpful?
0 / 5 - 0 ratings