TweenMax+MorphSVGPlugin+svg实现一个冒泡泡和泡沫的啤酒瓶动画效果代码

代码语言:html

所属分类:动画

代码描述:TweenMax+MorphSVGPlugin+svg实现一个冒泡泡和泡沫的啤酒瓶动画效果代码GPlugin+svg实现一个冒泡泡和泡沫的啤酒瓶动画效果代码

代码标签: TweenMax MorphSVGPlugin svg 冒泡 泡沫 啤酒瓶 动画

下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开


<!DOCTYPE html>
<html lang="en" >

<head>

  <meta charset="UTF-8">
  

  
<style>
body {
  text-align: center;
  font-family: sans-serif;
}

svg {
  max-width: 400px;
}

a {
  text-decoration: none;
  color: DodgerBlue;
}

.info {
  margin-top: 20px;
}
</style>



</head>

<body >
  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 800 800">
  <g style="isolation:isolate">
    <path id="Background" fill="#fff" d="M0 0h800v800H0z"/>
    <g id="Objects">
      <circle id="bg" cx="400" cy="400" r="400" fill="#daa74e"/>
      <path id="shadow" d="M800 401.64L506.36 108 263.55 350.83l83.58 83.58-36.91 36.91 114.6 114.6L277 733.78l61.51 61.51A402.47 402.47 0 0 0 400 800c220.36 0 399.09-178.2 400-398.36z" opacity=".1" style="mix-blend-mode:multiply"/>
      <path id="glass-stand" fill="#f0f2f5" d="M497.7 729.88v-17.16h-47.93a477 477 0 0 0-63.24-3.91 477.06 477.06 0 0 0-63.23 3.91h-47.06c-.31.59-.63 1.16-1 1.71v16.9h.05c1.13 12 50.48 21.69 111.23 21.69 61.48 0 111.3-9.9 111.3-22.12a5.28 5.28 0 0 0-.12-1.02z"/>
      <path id="glass" fill="#f6f8fb" d="M499.28 435.16c46.65-147.11 26.92-270.9 26.92-270.9l-135.79-6.79v-.39l-3.88.2-3.86-.2v.39l-135.8 6.79s-19.72 123.79 26.93 270.9c45.33 143 44.89 201.22 5.32 273.56-2.52 1.83-3.87 3.76-3.87 5.77 0 12.22 49.82 22.12 111.28 22.12s111.3-9.9 111.3-22.12c0-2-1.36-3.94-3.86-5.77-39.59-72.34-40.03-130.6 5.31-273.56z"/>
      <path id="liquid" fill="#fa0" d="M489.37 435.16c42.56-147.11 24.56-270.9 24.56-270.9l-123.86-6.79v-.39l-3.54.2-3.52-.2v.39l-123.87 6.79s-18 123.79 24.56 270.9c41.35 143 40.95 201.22 4.86 273.56-2.3 1.83-3.53 3.76-3.53 5.77 0 12.22 45.44 22.12 101.5 22.12s101.52-9.9 101.52-22.12c0-2-1.23-3.94-3.52-5.77-36.11-72.34-36.53-130.6 4.84-273.56z"/>
      <g id="bubbles" fill="#f6f8fb">
        <path id="bubble16" d="M322.82 151a8.57 8.57 0 1 0-8.57 8.56 8.56 8.56 0 0 0 8.57-8.56z" opacity=".2"/>
        <circle id="bubble15" cx="322.14" cy="135.01" r="3.25" opacity=".2"/>
        <path id="bubble14" d="M336.77 192.31a6.53 6.53 0 1 0-6.52 6.53 6.52 6.52 0 0 0 6.52-6.53z" opacity=".2"/>
        <circle id="bubble13" cx="339.29" cy="159.34" r="9.58" opacity=".2"/>
        <circle id="bubble12" cx="352.41" cy="175.84" r="9.58" opacity=".2"/>
        <circle id="bubble11" cx="368.79" cy="188.84" r="9.58" opacity=".2"/>
        <circle id="bubble11-2" cx="379.79" cy="188.84" r="9.58" data-name="bubble11" opacity=".2"/>
        <path id="bubble10" d="M394.48 151.76a9.59 9.59 0 1 0-9.59 9.58 9.58 9.58 0 0 0 9.59-9.58z" opacity=".2"/>
        <circle id="bubble09" cx="393.46" cy="130.78" r="9.58" opacity=".2"/>
        <circle id="bubble08" cx="405.64" cy="130.34" r="9.58" opacity=".2"/>
        <path id="bubble07" d="M419.86 184.85a6.53 6.53 0 1 0-6.53 6.53 6.52 6.52 0 0 0 6.53-6.53z" opacity=".2"/>
        <path id="bubble06" d="M424.74 121.09a6.53 6.53 0 1 0-6.52 6.53 6.52 6.52 0 0 0 6.52-6.53z" opacity=".2"/>
  .........完整代码请登录后点击上方下载按钮下载查看

网友评论0