three打造三维蒲公英效果
代码语言:html
所属分类:三维
代码描述:three打造三维蒲公英效果
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <style> * { -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; } body { height: 100vh; background-color: hotpink; margin: 0; padding: 0; overflow: hidden; } </style> </head> <body translate="no"> <div id="canvas-wrapper" aria-label="dandelion-dahlia flowers"></div> <script type="text/javascript" src="http://repo.bfw.wiki/bfwrepo/js/three.js"></script> <script > /* * DANDELIONS DAHLIAS * Made with ThreeJS - Enjoy! * * Use cursor to move around the floating animation. * On mobile touch + drag screen. * * Hover the flowers to change their material and light effect. * On mobile touch the flowers to change them, and touch anywhere else on the screen to go back to default material. * * If you have any performance tips on this code, I'm all ear.........完整代码请登录后点击上方下载按钮下载查看
网友评论0