libgif实现点击暂停播放gif动画效果代码
代码语言:html
所属分类:动画
代码描述:libgif实现点击暂停播放gif动画效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en" > <head> <meta charset="UTF-8"> <style> body{ position: absolute; left:0; top:0; right:0; bottom:0; background-color: darkslategray; cursor:pointer; } .jsgif { position: absolute; left: 0; right: 0; top: 0; bottom: 0; margin: auto; width: 50vh; height: 50vh; background-color:lightblue; } .jsgif_toolbar { display: none; } .jsgif > canvas { position:relative; width: 100%; height: 100%; } </style> </head> <body> <img id="img" src="//repo.bfw.wiki/bfwrepo/icon/61162b3327ad6.gif" rel:animated_src="//repo.bfw.wiki/bfwrepo/icon/61162b3327ad6.gif" width="360".........完整代码请登录后点击上方下载按钮下载查看
网友评论0