Skip to content

Commit 00d304c

Browse files
committed
enforce minimunm duration
1 parent 72b3c76 commit 00d304c

File tree

5 files changed

+26
-4142
lines changed

5 files changed

+26
-4142
lines changed

docs/build/rmr-backdrop.bundle.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.

docs/index.html

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ <h1><i>🎨</i>Backdrop</h1>
123123
});
124124

125125
var dropper = new window.Backdrop({
126-
duration : 2000,
126+
duration : 0.5,
127127
debug: true
128128
});
129129

@@ -134,6 +134,7 @@ <h1><i>🎨</i>Backdrop</h1>
134134
document.querySelector('button.backdrop').addEventListener('click', function(e) {
135135
if (! dropper.isDropping()) {
136136
dropper.drop({
137+
duration: 0.5,
137138
srcset: 'https://s3.amazonaws.com/dfm.photography/photos/web.desktop/chino.jpg',
138139
styles: { 'position' : '50% bottom', 'color' : '#fff', 'size' : 'cover', 'position' : '0 0', 'attachment' : 'scroll' }
139140

@@ -172,9 +173,6 @@ <h1><i>🎨</i>Backdrop</h1>
172173

173174
} else { console.log('nope'); }
174175
});
175-
176-
177-
178176
});
179177

180178
</script>

0 commit comments

Comments
 (0)