资讯专栏INFORMATION COLUMN

前端水波纹往外展开4

Hwg / 572人阅读

摘要:来自侵删

来自:https://blog.csdn.net/qq_38658877/article/details/78092649 侵删
DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv="X-UA-Compatible" content="ie=edge"> <title>Documenttitle> <style type="text/css"> .example { position: relative; margin: 150px auto; width: 50px; height: 50px; } .dot:before { content: ; position: absolute; z-index: 2; left: 0; top: 0; width: 10px; height: 10px; background-color: #ff4200; border-radius: 50%; } .dot:after { content: ; position: absolute; z-index: 1; width: 10px; height: 10px; background-color: #ff4200; border-radius: 50%; box-shadow: 0 0 10px rgba(0, 0, 0, .3) inset; -webkit-animation: waveCircle 1s ease infinite normal; /*-webkit-animation-name: ripple; -webkit-animation-duration: 1s; -webkit-animation-timing-function: ease; -webkit-animation-delay: 0s; -webkit-animation-iteration-count: infinite; -webkit-animation-direction: normal;*/ } @keyframes waveCircle { 0% { left: 5px; top: 5px; width: 0; height: 0; } 100% { left: -20px; top: -20px; opacity: 0; width: 50px; height: 50px; } } style> head> <body> <div class="example"> <div class="dot">div> div> body> html>

 

文章版权归作者所有,未经允许请勿转载,若此文章存在违规行为,您可以联系管理员删除。

转载请注明本文地址:https://www.ucloud.cn/yun/1166.html

相关文章

  • 前端波纹外展1

    摘要:来自侵删来自:https://blog.csdn.net/qq_38658877/article/details/78092649 侵删DOCTYPE html> Document html { font-size: 20px; } body { background: #...

    leonardofed 评论0 收藏0
  • css动画-实现一个最简单的波纹效果button

    摘要:类似的效果步骤在页面写出一个并赋予简单的样式代码这是一个按钮默认是无法用给它居中为了增加用户体验为了保持和的位置关系为了遮盖超出的效果添加水波纹的基础样式代码为了保持和的位置关系水波纹圆形水波纹颜色下面与动画效果相关是时候的状态默认 类似material-ui的button效果 步骤 1. 在页面写出一个button 并赋予简单的样式 代码 这是一个按钮 ...

    Hancock_Xu 评论0 收藏0
  • css 滚动视差 之 波纹效果

    摘要:我们来看个例子代码很简单,让视口出现滚动条,然后它是这样的很普通的一个滚动效果,然后我们把注释去掉,就是加上这句话华丽变身由于它相对视口固定,看起来就好像只有一个背景一样。核心属性: background-attachment 这个属性就牛逼了, 它可以定义背景图片是相对视口固定, 还是随着视口滚动, 加上这个属性网页瞬间就从屌丝变成 高大上。 我们来看个例子: ...

    _ang 评论0 收藏0
  • css 滚动视差 之 波纹效果

    摘要:我们来看个例子代码很简单,让视口出现滚动条,然后它是这样的很普通的一个滚动效果,然后我们把注释去掉,就是加上这句话华丽变身由于它相对视口固定,看起来就好像只有一个背景一样。核心属性: background-attachment 这个属性就牛逼了, 它可以定义背景图片是相对视口固定, 还是随着视口滚动, 加上这个属性网页瞬间就从屌丝变成 高大上。 我们来看个例子: html: I WANT...

    番茄西红柿 评论0 收藏0

发表评论

0条评论

Hwg

|高级讲师

TA的文章

阅读更多
最新活动
阅读需要支付1元查看
<