jquery - Why the size of the image change while rotating using CSS transform -


i have card flip effect

function flip(card, callback) {     $.each(card, function(i, card) {         card = $(card);         card.find('img').css({             //perspective: 400,             rotatex: 0         }).animate({             rotatex: 90         }, function() {             var file = card.hasclass('back') ? front : back;             $(this).attr('src', file).css('rotatex', 270).animate({                 rotatex: 360             }, function() {                 $(this).css('rotatex', 0);                 card.toggleclass('back front');                 if (typeof callback === 'function') {                     callback();                 }             });         });     }); }; 

and when flipping card (change rotatex - it's jquery css plugin) on click size of card smaller , when animation finish it's go prevoius size. work fine if don't change url when flipping. why happen? how can fix it? here jsfiddle.

update seams happen in google chrome. in firefox work fine.


Comments

Popular posts from this blog

image - ClassNotFoundException when add a prebuilt apk into system.img in android -

I need to import mysql 5.1 to 5.5? -

Java, Hibernate, MySQL - store UTC date-time -