svg实现一个流水动画效果代码
代码语言:html
所属分类:动画
代码描述:svg实现一个流水动画效果代码,在画作上增添一条河流
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en" > <head> <meta charset="UTF-8"> <style> body { margin: 0; padding: 0; background: peachpuff; } #box { width: 535px; height: 888px; position: relative; margin: auto; border: 2px solid #000; overflow: hidden; box-shadow: 0 1rem 3rem rgba(0,0,0,.175); background: url(//repo.bfw.wiki/bfwrepo/image/6002322e542f6.png); } .river { filter: url(#turbulence); background: radial-gradient( 1.5em 6.28571em at 1.95em, rgba(255, 255, 255, 0) 50%, rgba(255, 255, 255, 0.25) 50%, rgba(255, 255, 255, 0.25) 55%, rgba(255, 255, 255, 0) 55% ) 0 0, radial-gradient( 1.5em 6.28571em at -0.45em, rgba(255, 255, 255, 0) 50%, rgba(255, 255, 255, 0.25) 50%, rgba(255, 255, 255, 0.25) 55%, rgba(255, 255, 255, 0) 55% ) 1.5em 5.5em, radial-gradient( 2.3em 4.57143em at 2.99em, rgba(255, 255, 255, 0) 50%, rgba(255, 255, 255, 0.3) 50%, rgba(255, 255, 255, 0.3) 55%, rgba(255, 255, 255, 0) 55% ) 0 0, radial-gradient( 2.3em 4.57143em at -0.69em, rgba(255, 255, 255, 0) 50%, rgba(255, 255, 255, 0.3) 50%, rgba(255, 255, 255, 0.3) 55%, rgba(255, 255, 255, 0) 55% ) 2.3em 4em, radial-gradient( 3.5em 6.28571em at 4.55em, rgba(255, 255, 255, 0) 50%, rgba(255, 255, 255, 0.25) 50%, rgba(255, 255, 255, 0.25) 55%, rgba(255, 255, 255, 0) 55% ) 0 0, radial-gradi.........完整代码请登录后点击上方下载按钮下载查看
网友评论0