svg实现画中卡通小船漂浮航行动画效果代码
代码语言:html
所属分类:动画
代码描述:svg实现画中卡通小船漂浮航行动画效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en" > <head> <meta charset="UTF-8"> <style> @import url("https://fonts.cdnfonts.com/css/sofia-sans-condensed"); body { display: flex; align-items: center; justify-content: center; height: 100vh; width: 100vw; background-color: #111; } body .frame { width: 350px; height: 350px; border: 25px solid #fff; display: flex; align-items: center; justify-content: center; border-radius: 25px; position: relative; overflow: hidden; z-index: 9; } body .frame:before { content: ''; width: 350px; height: 350px; position: absolute; border-radius: 15px; border: 5px solid #fff; overflow: hidden; z-index: 8; box-shadow: inset 0 0 25px rgba(0,0,0,0.45); } body .frame:after { content: ''; width: 350px; height: 350px; position: absolute; z-index: 0; background-color: #87ceeb; } body .frame .layer1 { position: absolute; width: 150%; bottom: -50px; z-index: 6; } body .frame .layer1 .waterl1 { fill: rgba(0,0,200,0.5); } body .frame .layer2 { width: 225%; position: absolute; bottom: -45px; z-index: 4; } body .frame .layer2 .waterl2 { fill: rgba(20,2.........完整代码请登录后点击上方下载按钮下载查看
网友评论0