js+svg实现滚动浏览器绘画动画效果代码
代码语言:html
所属分类:加载滚动
代码描述:js+svg实现滚动浏览器绘画动画效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en" > <head> <meta charset="UTF-8"> <style> body { /* feel free to change height */ height: 5000px; background: linear-gradient( to bottom, orange, darkblue ); } h1 { font-family: "HelveticaNeue-Light", "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif; font-weight: 300; color: white; text-transform: uppercase; text-align: center; font-size: 22px; letter-spacing: 5px; font-weight: 100; padding: 25px 15px; text-shadow: 1px 1px 1px #333; } #star-svg { position: fixed; top: 50%; left: 50%; width: 150px; height: 150px; margin: -75px 0 0 -75px; } </style> </head> <body > <h1>滚动浏览器实现绘画</h1> <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100.6 107.6" id="star-svg"> <path fill="none" stroke="white" stroke-width="2" .........完整代码请登录后点击上方下载按钮下载查看
网友评论0