Created
April 11, 2015 08:08
-
-
Save masuhajime/756cd6918a1f735dfd4e to your computer and use it in GitHub Desktop.
Revisions
-
masuhajime created this gist
Apr 11, 2015 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,34 @@ <script type="text/javascript" src="https://code.jquery.com/jquery-2.1.3.min.js"></script> <script type="text/javascript"> function rotate(){ $('#catch1').fadeIn(500, function() { $(this).fadeOut(500, function() { $('#catch2').fadeIn(500, function() { $(this).fadeOut(500, function() { $('#catch3').fadeIn(500, function() { $(this).fadeOut(500, function() { $('#catch4').fadeIn(500, function() { $(this).fadeOut(500, function() { rotate(); }); }); }); }); }); }); }); }); } $(function(){ rotate(); }) </script> <style type="text/css"> p{ display:none; } </style> <p id="catch1">catch1</p> <p id="catch2">catch2</p> <p id="catch3">catch3</p> <p id="catch4">catch4</p>