优化gif demo

This commit is contained in:
Harvey Zack committed 2018-12-06 20:19:43 +08:00
1 parent 02c63e55e8
commit b42e9b99c7
8 files changed
+95 -31

No files matched your search

+6
View File
@@ -31,4 +31,10 @@
],
plugins: [artplayerPluginGif]
});
art.on('artplayerPluginGif', image => {
var animatedImage = document.createElement('img');
animatedImage.src = image;
document.querySelector('.preview').appendChild(animatedImage);
});
})();