Disable transitions for cloned page

This commit is contained in:
Niklas von Hertzen 2014-11-02 20:26:25 +02:00
parent 7ebd191488
commit 772767d0d9
3 changed files with 5 additions and 3 deletions

3
dist/html2canvas.js vendored
View File

@ -1677,7 +1677,8 @@ NodeParser.prototype.createPseudoHideStyles = function(document) {
};
NodeParser.prototype.disableAnimations = function(document) {
this.createStyles(document, '* { -webkit-animation: none !important; -moz-animation: none !important; -o-animation: none !important; animation: none !important; }');
this.createStyles(document, '* { -webkit-animation: none !important; -moz-animation: none !important; -o-animation: none !important; animation: none !important; ' +
'-webkit-transition: none !important; -moz-transition: none !important; -o-transition: none !important; transition: none !important;}');
};
NodeParser.prototype.createStyles = function(document, styles) {

File diff suppressed because one or more lines are too long

View File

@ -103,7 +103,8 @@ NodeParser.prototype.createPseudoHideStyles = function(document) {
};
NodeParser.prototype.disableAnimations = function(document) {
this.createStyles(document, '* { -webkit-animation: none !important; -moz-animation: none !important; -o-animation: none !important; animation: none !important; }');
this.createStyles(document, '* { -webkit-animation: none !important; -moz-animation: none !important; -o-animation: none !important; animation: none !important; ' +
'-webkit-transition: none !important; -moz-transition: none !important; -o-transition: none !important; transition: none !important;}');
};
NodeParser.prototype.createStyles = function(document, styles) {