流星特效案例代码

这篇具有很好参考价值的文章主要介绍了流星特效案例代码。希望对大家有所帮助。如果存在错误或未考虑完全的地方,请大家不吝赐教,您也可以点击"举报违法"按钮提交疑问。

实际效果,代码下载即可使用

流星特效案例代码,css,css3,前端

 流星图片

 流星特效案例代码,css,css3,前端

<!--

 描述: 流星特效

 作者: Jack GUO

 日期: 20230727

-->

<template>

  <div class="wrap-container sn-container">

    <div class="pd-main-left">

      <div class="yun-container">

        <div class="yun-tree"></div>

        <div class="line-fs"></div>

        <div class="line-fs"></div>

        <div class="line-fs"></div>

        <div class="line-fs"></div>

        <div class="line-fs"></div>

        <div class="line-fs"></div>

        <div class="line-fs"></div>

        <div class="line-fs"></div>

        <div class="line-fs"></div>

      </div>

    </div>

  </div>

</template>

<script>

export default {

  name: "flashCloud",

  data() {

    return {

    }

  },

  mounted() {

  },

  methods: {

  },

  beforeDestroy() {

  }

};

</script>

<style lang="scss" scoped>

.wrap-container {

  position: absolute;

  overflow: hidden;

  display: block;

  cursor: default;

  z-index: 0;

  left: 0;

  top: 0;

  width: 500px;

  height: 300px;

  background-color: black;

}

.sn-container {

  left: 512px;

  top: 78px;

  width: 432px;

  height: 400px;

  .pd-main-left {

    position: relative;

    width: 310px;

    height: 335px;

    transform: rotate(45deg);

    .yun-container {

      width: 100%;

      height: 100%;

      >div {

        &:nth-child(2) {

          height: 90%;

          -webkit-animation-duration: 2s;

          -moz-animation-duration: 2s;

          -o-animation-duration: 2s;

          animation-duration: 2s;

          -webkit-animation-delay: 1.5s;

          -moz-animation-delay: 1.5s;

          -o-animation-delay: 1.5s;

          animation-delay: 1.5s;

          bottom: 0;

          left: 51px;

        }

        &:nth-child(3) {

          height: 100%;

          -webkit-animation-duration: 3s;

          -moz-animation-duration: 3s;

          -o-animation-duration: 3s;

          animation-duration: 3s;

          -webkit-animation-delay: 0s;

          -moz-animation-delay: 0s;

          -o-animation-delay: 0s;

          animation-delay: 0s;

          bottom: 32px;

          left: 89px;

        }

        &:nth-child(4) {

          height: 100%;

          -webkit-animation-duration: 2.5s;

          -moz-animation-duration: 2.5s;

          -o-animation-duration: 2.5s;

          animation-duration: 2.5s;

          -webkit-animation-delay: 1s;

          -moz-animation-delay: 1s;

          -o-animation-delay: 1s;

          animation-delay: 1s;

          bottom: 3px;

          left: 179px;

          -webkit-filter: hue-rotate(180deg);

          filter: hue-rotate(180deg);

        }

        &:nth-child(5) {

          height: 90%;

          -webkit-animation-duration: 2s;

          -moz-animation-duration: 2s;

          -o-animation-duration: 2s;

          animation-duration: 2s;

          -webkit-animation-delay: 2s;

          -moz-animation-delay: 2s;

          -o-animation-delay: 2s;

          animation-delay: 2s;

          bottom: 42px;

          left: 229px;

        }

        &:nth-child(6) {

          height: 100%;

          -webkit-animation-duration: 2.5s;

          -moz-animation-duration: 2.5s;

          -o-animation-duration: 2.5s;

          animation-duration: 2.5s;

          -webkit-animation-delay: 0.5s;

          -moz-animation-delay: 0.5s;

          -o-animation-delay: 0.5s;

          animation-delay: 0.5s;

          bottom: 11px;

          right: 48px;

        }

        &:nth-child(7) {

          height: 90%;

          -webkit-animation-duration: 3s;

          -moz-animation-duration: 3s;

          -o-animation-duration: 3s;

          animation-duration: 3s;

          -webkit-animation-delay: 2.5s;

          -moz-animation-delay: 2.5s;

          -o-animation-delay: 2.5s;

          animation-delay: 2.5s;

          bottom: -22px;

          right: 174px;

          -webkit-filter: hue-rotate(180deg);

          filter: hue-rotate(180deg);

        }

        &:nth-child(8) {

          height: 90%;

          -webkit-animation-duration: 3s;

          -moz-animation-duration: 3s;

          -o-animation-duration: 3s;

          animation-duration: 3s;

          -webkit-animation-delay: 1.5s;

          -moz-animation-delay: 1.5s;

          -o-animation-delay: 1.5s;

          animation-delay: 1.5s;

          bottom: -22px;

          right: 100px;

        }

        &:nth-child(9) {

          height: 100%;

          -webkit-animation-duration: 2.5s;

          -moz-animation-duration: 2.5s;

          -o-animation-duration: 2.5s;

          animation-duration: 2.5s;

          -webkit-animation-delay: 2s;

          -moz-animation-delay: 2s;

          -o-animation-delay: 2s;

          animation-delay: 2s;

          bottom: -10px;

          right: 220px;

        }

        &:nth-child(10) {

          height: 95%;

          -webkit-animation-duration: 2s;

          -moz-animation-duration: 2s;

          -o-animation-duration: 2s;

          animation-duration: 2s;

          -webkit-animation-delay: 1s;

          -moz-animation-delay: 1s;

          -o-animation-delay: 1s;

          animation-delay: 1s;

          bottom: -41px;

          right: 182px;

        }

      }

      .yun-tree {

        width: 100%;

        height: 100%;

        mix-blend-mode: screen;

      }

      .line-fs {

        width: 14px;

        height: 100%;

        background-image: url(../../assets/line-fs.png);

        background-repeat: no-repeat;

        background-position: 50% 150%;

        position: absolute;

        z-index: -1;

        -webkit-animation: fs 3s cubic-bezier(1, 0, 0.6, 0.6) infinite;

        -moz-animation: fs 3s cubic-bezier(1, 0, 0.6, 0.6) infinite;

        -o-animation: fs 3s cubic-bezier(1, 0, 0.6, 0.6) infinite;

        animation: fs 3s cubic-bezier(1, 0, 0.6, 0.6) infinite;

      }

    }

  }

}

@-webkit-keyframes fs {

  0% {

    background-position: 50% 150%;

  }

  50% {

    background-position: 50% -132%;

  }

  100% {

    background-position: 50% -264%;

    opacity: 0;

  }

}

@-moz-keyframes fs {

  0% {

    background-position: 50% 150%;

  }

  50% {

    background-position: 50% -132%;

  }

  100% {

    background-position: 50% -264%;

    opacity: 0;

  }

}

@-o-keyframes fs {

  0% {

    background-position: 50% 150%;

  }

  50% {

    background-position: 50% -132%;

  }

  100% {

    background-position: 50% -264%;

    opacity: 0;

  }

}

@keyframes fs {

  0% {

    background-position: 50% 150%;

  }

  50% {

    background-position: 50% -132%;

  }

  100% {

    background-position: 50% -264%;

    opacity: 0;

  }

}

</style>文章来源地址https://www.toymoban.com/news/detail-611604.html

到了这里,关于流星特效案例代码的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处: 如若内容造成侵权/违法违规/事实不符,请点击违法举报进行投诉反馈,一经查实,立即删除!

领支付宝红包 赞助服务器费用

相关文章

  • css3实现3D立方体旋转特效源码

    CSS3自动旋转正方体3D特效是一款基于css3 keyframes属性制作的图片相册自动旋转立方体特效 css3实现3D立方体旋转特效代码

    2024年04月09日
    浏览(38)
  • 实用CSS3模拟实现一个雷达扫描动画特效

    方法二:雷达扫描动画特效(filter阴影效果)  

    2024年02月12日
    浏览(33)
  • CSS3绘制3D银行卡片层叠展示特效

    使用纯css3绘制3D银行卡层叠展示特效 具体示例如下 实现这个3D卡片,需要在最外层父级元素添加 transform: translate3d(0, 0, 0);transform-style: preserve-3d ,声明 3D ,结合 css3 中 transform 的变换,平移就可以实现 村民私自搭桥收费被判刑 2023-07-10 聊一下大学几年如何渡过 2023-07-09 聊一聊抑郁

    2024年02月16日
    浏览(34)
  • 纯css3实现小鸡从鸡蛋破壳而出动画特效

    实现一个使用纯css3实现小鸡破壳的效果 示例效果如下所示 实现这个小鸡破壳,使用css3,结合动画关键帧就可以实现,结合元素绝对定位,使用 div + css 进行绘制 当鼠标移上去时,实现蛋黄与蛋壳的分离,使用css3中的 transform ,变换,垂直反方向上,平移就可以实现 村民私自搭桥收费被

    2024年02月16日
    浏览(30)
  • 520要来了,CSS3模拟3D旋转节日表白动画特效

    一年一度的520要来了,做为一名CSS3爱好者,怎么能不为大家的技术型表白做出一点贡献呢,这不,用CSS3模拟3D旋转的表白特效来了,快快拿去表白 目录 实现思路  单层3D可见 HTML源代码 CSS3源代码   实现思路  本文通过添加. scene 类,添加 .banner 类,使其双层3D呈现 transform

    2024年02月05日
    浏览(36)
  • CSS3煎制荷包蛋动画特效,优质男士表白必备

    你有多久没吃过早餐了?你是否每天忙碌到很晚,结果导致早上起来也很晚,匆匆忙忙来不及吃早餐,更别说自己做了。一直到现在,你有多久没有吃到过母亲做的早饭了?我们在外奔波,希望家人安康?你有多久没有给自己的爱人做过早餐了?害,谁的婚后日子不是刀光剑

    2024年02月07日
    浏览(27)
  • 快六一啦,学习CSS3实现一个冰淇淋动画特效

    快六一啦,小时候顶多吃个小冰棍,或者是那种小冰袋,现在的小朋友真是好,动不动就能吃到冰淇淋,今天用CSS3实现一个冰淇淋的动画特效吧   目录 实现思路 桶身的实现 冰淇淋身体的实现 五彩颗粒的实现 HTML源码 CSS3源码 最后 实现思路 本文采用多DOM的方式进行布局,冰

    2024年02月06日
    浏览(28)
  • HTML5+CSS3小实例:3D翻转Tab选项卡切换特效

    实例:3D翻转Tab选项卡切换特效 技术栈:HTML+CSS 效果: 源码: 【HTML】

    2024年02月04日
    浏览(48)
  • 看不上日全食了,学习CSS3,实现一个日全食的动画特效

    看新闻说,今年全球唯一一次日全食将于北京时间4月9日凌晨在北美洲地区上演。看来那边我是去不成了,日全食也看不见了,不过我可以用CSS3实现一个日全食的动画特效。一起来看一下吧。   目录 1. 实现思路 2. 天空的生成已经渐变 3 太阳的生成以及渐变 4 月亮的生成以及

    2024年04月09日
    浏览(32)
  • HTML5+CSS3+JS小实例:快捷菜单图标按钮交互特效

    实例:快捷菜单图标按钮交互特效 技术栈:HTML+CSS+JS 字体图标库:font-awesome 效果: 源码: 【html】

    2024年02月17日
    浏览(38)

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

博客赞助

微信扫一扫打赏

请作者喝杯咖啡吧~博客赞助

支付宝扫一扫领取红包,优惠每天领

二维码1

领取红包

二维码2

领红包