您现在的位置是:网站首页> 编程资料编程资料
CSS3 实现的火焰动画CSS3实现文字浮雕效果,镂刻效果,火焰文字通过CSS的滤镜实现火焰效果的示例如何通过 CSS 写出火焰效果
2023-10-17
461人已围观
简介 这篇文章主要介绍了CSS3 实现的火焰动画的示例代码,帮助大家更好的理解和使用CSS3制作特效,感兴趣的朋友可以了解下
实现效果

实现代码
html
CSS3
body{ background:black; } .container{ margin:80px auto; width: 60px; height: 60px; position:relative; transform-origin:center bottom; animation-name: flicker; animation-duration:3ms; animation-delay:200ms; animation-timing-function: ease-in; animation-iteration-count: infinite; animation-direction: alternate; } .flame{ bottom:0; position:absolute; border-bottom-right-radius: 50%; border-bottom-left-radius: 50%; border-top-left-radius: 50%; transform:rotate(-45deg) scale(1.5,1.5); } .yellow{ left:15px; width: 30px; height: 30px; background:gold; box-shadow: 0px 0px 9px 4px gold; } .orange{ left:10px; width: 40px; height: 40px; background:orange; box-shadow: 0px 0px 9px 4px orange; } .red{ left:5px; width: 50px; height: 50px; background:OrangeRed; box-shadow: 0px 0px 5px 4px OrangeRed; } .white{ left:15px; bottom:-4px; width: 30px; height: 30px; background:white; box-shadow: 0px 0px 9px 4px white; } .circle{ border-radius: 50%; position:absolute; } .blue{ width: 10px; height: 10px; left:25px; bottom:-25px; background: SlateBlue; box-shadow: 0px 0px 15px 10px SlateBlue; } .black{ width: 40px; height: 40px; left:10px; bottom:-60px; background: black; box-shadow: 0px 0px 15px 10px black; } @keyframes flicker{ 0% {transform: rotate(-1deg);} 20% {transform: rotate(1deg);} 40% {transform: rotate(-1deg);} 60% {transform: rotate(1deg) scaleY(1.04);} 80% {transform: rotate(-2deg) scaleY(0.92);} 100% {transform: rotate(1deg);} }以上就是CSS3 实现的火焰动画的详细内容,更多关于CSS3 火焰动画的资料请关注其它相关文章!
相关内容
- 全民英雄挑战20-10阵容推荐_全民英雄挑战20-10怎么过_手机游戏_游戏攻略_
- 全民斗三国过关斩将玩法攻略_全民斗三国过关斩将怎么玩_手机游戏_游戏攻略_
- 全民斗三国统将培养教程攻略_全民斗三国统将怎么培养_手机游戏_游戏攻略_
- 全民英雄元月版新英雄土熊猫全方位解析_土熊猫怎么样_手机游戏_游戏攻略_
- 全民英雄元月版新英雄神谕者全方位解析_神谕者怎么样_手机游戏_游戏攻略_
- 糖果忍者猫3游戏个人心得经验_手机游戏_游戏攻略_
- 黑帮老太2疯狂行动战降boss打法_手机游戏_游戏攻略_
- 天天飞车birdyk 好不好 birdyk怎么改装_手机游戏_游戏攻略_
- 生存战争 晚上有狼 两种解决方法_手机游戏_游戏攻略_
- 永恒战士3进不去怎么办 永恒战士3进不去的解决方法_手机游戏_游戏攻略_
