gsap实现气球上升触顶爆炸动画效果代码

代码语言:html

所属分类:动画

代码描述:gsap实现气球上升触顶爆炸动画效果代码

代码标签: 上升 触顶 爆炸 动画 效果

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


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

<head>

  <meta charset="UTF-8">
  

  
  
  
<style>
html, body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  position: relative;
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
}

.color {
  fill: var(--color, black);
}

#svg {
  position: absolute;
  overflow: visible;
  top: 0;
  left: 0;
}

#content {
  text-align: center;
  font-family: sans-serif;
  user-select: none;
}

.balloon {
  cursor: pointer;
}

#behind_svg {
  z-index: 1;
}

#content {
  z-index: 2;
}

#svg {
  z-index: 3;
}
</style>



</head>

<body translate="no" >
  <svg width="1" height="1" id="svg" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
  <defs>
    
    <g id="balloon">
      <path class="color" d="M30.32,85.27l2.6-3.67,2.18,3.67a3.09,3.09,0,0,1-2.39,1A2.63,2.63,0,0,1,30.32,85.27Z"/>
<!--       <path d="M30.32,85.27l2.6-3.67,2.18,3.67a3.09,3.09,0,0,1-2.39,1A2.63,2.63,0,0,1,30.32,85.27Z" style="opacity: 0.3;fill: url(#linear-gradient)"/> -->
      <ellipse class="color" cx=&qu.........完整代码请登录后点击上方下载按钮下载查看

网友评论0