CSS transition: fade background color, resetting after

前端 未结 3 824
耶瑟儿~
耶瑟儿~ 2021-01-31 03:43

I have a list of divs and allow my user to add a new one dynamically by posting new content. If the user posts new content, I\'d like to highlight it on the screen by fading the

3条回答
  •  情话喂你
    2021-01-31 04:06

    If you can use jquery-ui this might help:

    $('input[type=button]').click( function() { 
      var animTime = 1000;
     $('#newContent').addClass('pulse', animTime).removeClass('pulse', animTime);
    });
    .pulse{
            background-color: #AD310B;     
    }
    
    
    		
    
    Old stuff
    Old stuff
    Old stuff
    New stuff, just added

提交回复
热议问题