Codelab Editor
Free Online HTML Editor
Run
Learn jQuery
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>jQuery animate() - Queue False</title> <style> body { font-family: Arial, sans-serif; padding: 20px; } .box { width: 100px; height: 100px; display: flex; justify-content: center; align-items: center; background: #e91e63; color: white; text-align: center; position: relative; font-weight: bold; margin-top: 20px; border-radius: 0; } button { padding: 10px 20px; margin-right: 10px; background: #333; color: #fff; border: none; border-radius: 5px; cursor: pointer; } </style> <script src="https://code.jquery.com/jquery-3.7.1.min.js"></script> </head> <body> <h3>Queue: false (Run Animations Simultaneously)</h3> <p>Using <code>queue: false</code> makes each animation run immediately, without waiting for others. This creates simultaneous animations.</p> <button id="queueFalse">Run Queue False</button> <div class="box">Box</div> <script> $(document).ready(function () { function resetBox() { $('.box').stop(true, true).removeAttr('style').attr('class', 'box'); } $('#queueFalse').click(function () { resetBox(); $('.box').animate({ left: '+=100px' }, { duration: 800, queue: false }); $('.box').animate({ top: '+=100px' }, { duration: 800, queue: false }); $('.box').animate({ width: '200px' }, { duration: 800, queue: false }); $('.box').animate({ height: '200px' }, { duration: 800, queue: false }); $('.box').animate({ borderRadius: '200px' }, { duration: 800, queue: false }); }); }); </script> </body> </html>
Editor Commands
Ctrl
F
Find
Ctrl
G
Find Next
Ctrl
⇧
G
Find Previous
Ctrl
⇧
F
Find & Replace
Ctrl
]
Indent Code Right
Ctrl
[
Indent Code Left
⇧
Tab
Auto Indent Code
Ctrl
/
Line Comment
Ctrl
Alt
/
Block Comment
TutsInsider Actions
Alt
S
Run Code
Ctrl
C
Copy Editor Code
Ctrl
A
Select All Editor Code
Ctrl
S
Save/Download
Ctrl
Alt
X
Rotate
Ctrl
Alt
T
Switch Theme
Ctrl
⇧
C
Open Console
Esc
Close Console