构建demo

This commit is contained in:
Harvey Zack committed 2018-12-06 11:24:22 +08:00
1 parent ca31357292
commit b64d5d5744
5 files changed
+2819 -2698

No files matched your search

+7 -1
View File
@@ -2,7 +2,8 @@
(function() {
consola.creat({
target: 'body',
target: '.part-bottom',
size: '100%',
zIndex: 99,
});
@@ -30,5 +31,10 @@
art.on('firstCanplay', () => {
var preview = document.querySelector('.art-control-preview');
art.plugins.localPreview.attach(preview);
art.plugins.artplayerPluginGif.create({}, image => {
var animatedImage = document.createElement('img');
animatedImage.src = image;
document.querySelector('.preview').appendChild(animatedImage);
});
});
})();