Skip to content

Commit 4de4082

Browse files
committed
Allow user to set default animation speed
1 parent 1d4edb5 commit 4de4082

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

jquery.affirm.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@
7575
// move it. Instead we'll clone it.
7676

7777
if ($(content).parent().length) {
78-
content = $(content).clone(true);
78+
content = $(content).clone(true).show();
7979
}
8080

8181
// Set up modal variables
@@ -278,7 +278,7 @@
278278

279279
// Is there an overlay? Make sure we add it to the DOM
280280
if (this.options.overlay) {
281-
this.$overlay.hide().appendTo(document.body).fadeTo(this.options.animSpeed, 0.5);
281+
this.$overlay.hide().appendTo(document.body).fadeTo(this.options.animSpeed, this.options.css.overlayOpacity);
282282
}
283283

284284
// Let's prevent awkward scrolling

jquery.affirm.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)