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