首先灰常感谢 你所不知道的 CSS 滤镜技巧与细节 。我看完filter属性后还是迷迷糊糊的。因为不清楚能干什么。但看完这篇文章的例子后发现filter属性真的很厉害。
现在记录一些我的理解。
火焰效果
1、先画个带弧形的尖角。至于为什么需要带弧,只是因为带弧看起来更柔和一点,不太生硬。
<!DOCTYPE html>
<html lang="en">
<head>
<title>Title</title>
<style>
.firePart{ background-color: #b5932f; border: 200px solid black; border-bottom-color: transparent; border-radius: 50%; height: 0; position: absolute; top: 0; width: 0; }
</style>
</head>
<body>
<div style="float: left; position: relative;">
<div class="firePart"></div>
</div>
</body>
</html>