css 制作流星效果
<div>黄色星星</div><div class="star-yellow"><div class="yellow"><div class="lineYellow"></div></div></div>
css部分
<style lang="scss" scoped>
// yellow
.star-yellow {border: 1px solid red;.yellow {border: 1px solid red;width: 125px;height: 120px;overflow: hidden;display: flex;justify-content: center;align-items: center;perspective: 800px;/* perspective-origin: left bottom; */transform-style: preserve-3d;background-color: #007dff;}
}.lineYellow {width: 60px;height: 5px;border-radius: 4px 100% 100% 4px;background: linear-gradient(to right, #fff74d, #b5ac62, transparent);animation: downYellow 4s linear infinite both;animation-delay: 1.2s;
}.lineYellow::before,
.lineYellow::af
本文发布于:2024-01-30 16:09:35,感谢您对本站的认可!
本文链接:https://www.4u4v.net/it/170660217921228.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
留言与评论(共有 0 条评论) |