Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script src="http://code.jquery.com/jquery-1.8.2.min.js"></script>
- <script>
- $(function() {
- /**
- *
- */
- var container = $('.container');
- setInterval(function() {
- if(container.hasClass('active')) {
- container.removeClass('active');
- }
- else {
- container.addClass('active')
- }
- }, 732);
- });
- </script>
- <style>
- .container {
- width:10px;
- height:10px;
- background: red;
- }
- .container.active {
- width:20px;
- height:20px;
- }
- </style>
- <div class='container'></div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement