lottie实现一个表情开关切换动画效果代码
代码语言:html
所属分类:表单美化
代码描述:lottie实现一个表情开关切换动画效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <style> body { background-color: #457CFC; overflow: hidden; display: flex; align-items: center; justify-content: center; } body, html { height: 100%; width: 100%; margin: 0; padding: 0; } #animationWindow path{ width: 100%; height: 100%; cursor: pointer; } svg { /* background-color: red */ } </style> </head> <body> <div id="animationWindow"> </div> <script type="text/javascript" src="//repo.bfw.wiki/bfwrepo/js/lottie.5.9.6.js"></script> <script> let clickArr = [[60, 90], [150, 180], [240, 270], [330, 452]]; var select = function (s.........完整代码请登录后点击上方下载按钮下载查看
网友评论0