mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-23 22:01:20 -08:00
优化gif demo
This commit is contained in:
1 parent
02c63e55e8
commit
b42e9b99c7
8 files changed
+95
-31
No files matched your search
@@ -31,4 +31,10 @@
|
||||
],
|
||||
plugins: [artplayerPluginGif]
|
||||
});
|
||||
|
||||
art.on('artplayerPluginGif', image => {
|
||||
var animatedImage = document.createElement('img');
|
||||
animatedImage.src = image;
|
||||
document.querySelector('.preview').appendChild(animatedImage);
|
||||
});
|
||||
})();
|
||||
Reference in new issue
Block a user