html - 使用 SVG 玩 Gooey 效果

标签 html css animation svg

我目前正在尝试使用 SVG 过滤器重新创建 Gooey 效果。我有 2 个圆圈,我希望效果影响那 2 个圆圈,但我无法弄清楚此示例中的问题所在。请帮助我。这是我的代码:

body {
  filter: url('#goo')
}
.circle {
  position: absolute;
  width: 80px;
  height: 80px;
  background-color: #E63946;
  border-radius: 50%;
}
.circle-1 {
  left: 12%;
}
<div class="circle circle-1"></div>
<div class="circle circle-2"></div>
<svg>
  <defs>
    <filter id="goo">
      <feGuassianBlur in="SourceGraphic" stdDeviation="5" result="gaussianBlur"></feGuassianBlur>
      <feColorMatrix in="gaussianBlur" type='matrix' 
                     values="1 0 0 0 0
                             0 1 0 0 0
                             0 0 1 0 0
                             0 0 0 12 -6" result="color-matrix" />
      <feBlend in="SourceGraphic" in2="color-matrix" />
    </filter>
  </defs>
</svg>  

最佳答案

https://jsfiddle.net/359h9m5m/1/

你打错了,是feGaussianBlur,不是feGuassianBlur

关于html - 使用 SVG 玩 Gooey 效果,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42998065/

相关文章:

javascript - 侧边栏折叠时数据表标题对齐 : trigger class change

css - 在 R Shiny 中更改侧边栏菜单项颜色

android - 在 Android 中停止 ObjectAnimators 的 AnimatorSet

javascript - 如何在 js 中为单个字符设置动画或在悬停时使用 jquery?

javascript - jQuery 淡出函数

javascript - 获取 &lt;script&gt; 内容作为字符串

html - 我的CSS来自哪里?

css - 编译 less 文件时无法识别的输入

jquery - 具有可变高度的 CSS3 过渡?

html - Slim 模板 - 删除 block 标记周围的空格