Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // JavaScript Document
- $(document).ready(function(){
- color = 'red';
- window.setInterval(function(){
- if(color == 'red'){
- $('div#testing').animate({'background-color': 'blue'}, 'fast', 'easeOutQuint');
- color = 'blue';
- }
- else if(color == 'blue'){
- $('div#testing').animate({'background-color': 'red'}, 'fast', 'easeOutQuint');
- color = 'red';
- }
- console.log(color);
- }, 5000);
- });
Add Comment
Please, Sign In to add comment