Codelab Editor
Free Online HTML Editor
Run
Learn jQuery
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>jQuery.fx.interval Example</title> <script src="https://code.jquery.com/jquery-1.8.3.min.js"></script> <style> body { font-family: Arial, sans-serif; padding: 10px; } .demo-box { border: 1px solid #ccc; padding: 15px; margin-bottom: 10px; } .box { width: 100px; height: 100px; background: #2196f3; margin-top: 10px; position: relative; } </style> </head> <body> <h2>jQuery <code>jQuery.fx.interval</code> Property</h2> <div class="demo-box"> <p>Click below to see the effect of changing <code>jQuery.fx.interval</code> value before animation:</p> <button id="startSlow">Start Slow Animation</button> <button id="startFast">Start Fast Animation</button> <div class="box" id="animateBox"></div> </div> <script> $(document).ready(function() { $("#startSlow").click(function() { jQuery.fx.interval = 100; // slow animation $("#animateBox").stop(true).css("left", 0).animate({ left: "300px" }, 1000); }); $("#startFast").click(function() { jQuery.fx.interval = 10; // fast animation $("#animateBox").stop(true).css("left", 0).animate({ left: "300px" }, 1000); }); }); </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