svg实现切开的西瓜代码
代码语言:html
所属分类:其他
代码描述:svg实现切开的西瓜代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="UTF-8">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Overlock:ital,wght@1,900&display=swap" rel="stylesheet">
<style>
html, body {
display: grid;
}
html {
min-height: 100%;
background: linear-gradient(90deg, #727272, white);
}
body {
place-items: center;
}
h1 {
font: italic 900 clamp(2em, 8vw, 8em) overlock, serif;
}
svg {
overflow: visible;
}
</style>
</head>
<body translate="no">
<h1>Watermelon 😋</h1>
<svg viewBox="0 0 420 220">
<ellipse cx="205" cy="185" rx="145" ry="15" fill="#025074" filter="blur(15px)"></ellipse>
<g filter="drop-shadow(2px 2px 4px #0006)">
<!-- 67 40, 133 35, 83 95-->
<path d="M67 40l66-5-50 60" fill="#e20936"></path>
<!-- 67 40, 83 95, 58 .........完整代码请登录后点击上方下载按钮下载查看
















网友评论0