p5实现跟随鼠标的哈利波特魔法棒释放泡泡动画效果代码
代码语言:html
所属分类:动画
代码描述:p5实现跟随鼠标的哈利波特魔法棒释放泡泡动画效果代码
代码标签: p5 跟随 鼠标 哈利波特 魔法棒 释放 泡泡 动画
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en" > <head> <meta charset="UTF-8"> <style> body { background: #17191a; margin: 0; height: 100vh; display: flex; justify-content: center; align-items: center; overflow: hidden; } .card { width: 100%; height: 100%; cursor: url(//repo.bfw.wiki/bfwrepo/images/Harry_Potter_SeverusSnapeWandCursor.png), default !important; position: relative; } .footer { position: absolute; bottom: 10px; right: 10px; color: white; font-size: 12px; text-align: right; font-family: monospace; } .footer a { color: white; text-decoration: none; } </style> </head> <body > <div class="card" id="star-card"></div> <script type="text/javascript" src="//repo.bfw.wiki/bfwre.........完整代码请登录后点击上方下载按钮下载查看
网友评论0