Is it better to use jQuery fadeIn or CSS3 animations?
问题 I am creating a simple gallery using some PHP and JavaScript and am trying to do a fade transition between images. Then I wondered if there is a performance difference between using a CSS animation, e.g.: @-webkit-keyframes fadeIn { 0% { opacity: 0; } 100% { opacity: 1; } } and a jQuery fadeIn. I would like to use the callback from the fadeIn but I also can just use a timer with the CSS I guess. Are either of these likely to work better with large images? I can't see a difference, but