Commit 4681b605 authored by wildfirecode13's avatar wildfirecode13

11111

parent cec7f22f
No preview for this file type
node_modules
dist
.DS_Store
node_modules
dist
\ No newline at end of file
......@@ -11,7 +11,7 @@ class Main3 extends Component {
super(props);
this.state = {
resList: resList,
nickname:'nickname',
nickname:'d9813k',
avatar:1,
num:"1123"
};
......
......@@ -25,10 +25,10 @@ export const loadSVGA = (url) => {
export const getSVGA = async (url, className, loops, clearsAfterStop) => {
const videoItem = await loadSVGA(url);
var svga = new SVGA.Player(className);
// if (loops)
// svga.loops = loops;
// if (clearsAfterStop)
// svga.clearsAfterStop = clearsAfterStop;
if (loops)
svga.loops = loops;
if (clearsAfterStop)
svga.clearsAfterStop = clearsAfterStop;
svga.setVideoItem(videoItem);
svga.startAnimation();
return svga
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment