mirror of
https://github.com/niklasvh/html2canvas.git
synced 2023-08-10 21:13:10 +03:00
Disable transitions for cloned page
This commit is contained in:
parent
7ebd191488
commit
772767d0d9
3
dist/html2canvas.js
vendored
3
dist/html2canvas.js
vendored
@ -1677,7 +1677,8 @@ NodeParser.prototype.createPseudoHideStyles = function(document) {
|
|||||||
};
|
};
|
||||||
|
|
||||||
NodeParser.prototype.disableAnimations = 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) {
|
NodeParser.prototype.createStyles = function(document, styles) {
|
||||||
|
2
dist/html2canvas.min.js
vendored
2
dist/html2canvas.min.js
vendored
File diff suppressed because one or more lines are too long
@ -103,7 +103,8 @@ NodeParser.prototype.createPseudoHideStyles = function(document) {
|
|||||||
};
|
};
|
||||||
|
|
||||||
NodeParser.prototype.disableAnimations = 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) {
|
NodeParser.prototype.createStyles = function(document, styles) {
|
||||||
|
Loading…
Reference in New Issue
Block a user