Quest - This Message Will Self-destruct!
K.V.
01 Apr 2018, 19:25msg ("<span id='message1'>This message will self destruct!</span>")
SetTimeout (4) {
JS.eval ("$('#message1').toggle('explode');")
RemoveObject (message)
}
Dcoder
01 Apr 2018, 21:23That's some fancy JS combo animation going on there!
K.V.
02 Apr 2018, 00:22Quest has this built in: http://api.jqueryui.com/
http://api.jqueryui.com/explode-effect/
http://api.jqueryui.com/category/effects/
Dcoder
02 Apr 2018, 01:01Yowzer. You JS.exploded my mind.
I just assumed that explode
was your custom function, but it's an actual effect! What if you made it 100 exploded pieces? (I like to go overboard)
jmnevil54
02 Apr 2018, 03:15Label: JavaScript Look at eval evaluate delete RemoveObject Explode Message
(Just helping)
K.V.
02 Apr 2018, 06:39JS.eval ("$('#message1').toggle('explode', {pieces: 121});")
That makes it explode into 121 pieces. You can choose whatever number, but, if it's not a perfect square, it rounds it up (I think; maybe down).
NOTE: Too many pieces ruins the effect.