css 涟漪,CSS3 简单的涟漪动画

编程入门 行业动态 更新时间:2024-10-16 18:32:01

css <a href=https://www.elefans.com/category/jswz/34/1711292.html style=涟漪,CSS3 简单的涟漪动画"/>

css 涟漪,CSS3 简单的涟漪动画

CSS

语言:

CSSSCSS

确定

body {

background: #0099cc;

height: 100%;

width: 100%;

color: white;

font-size: 16px;

}

.scott {

font-family: 'Raleway';

font-weight: 100;

color: white;

font-size: 40px;

text-align: center;

margin-top: 100px;

position: absolute;

left: 0;

right: 0;

}

.lower {

margin-top: 400px;

}

.jumper {

display: block;

position: absolute;

left: 0;

top: 0;

right: 0;

bottom: 0;

margin: auto;

width: 60px;

height: 60px;

}

.jumper > div {

background-color: #fff;

width: 15px;

height: 15px;

border-radius: 100%;

margin: 2px;

-webkit-animation-fill-mode: both;

animation-fill-mode: both;

position: absolute;

left: 0px;

top: 0px;

opacity: 0;

margin: 0;

width: 60px;

height: 60px;

-webkit-animation: jumper 1s 0s linear infinite;

animation: jumper 1s 0s linear infinite;

}

.jumper > div:nth-child(2) {

-webkit-animation-delay: 0.33333s;

animation-delay: 0.33333s;

}

.jumper > div:nth-child(3) {

-webkit-animation-delay: 0.66666s;

animation-delay: 0.66666s;

}

@-webkit-keyframes jumper {

0% {

-webkit-transform: scale(0);

transform: scale(0);

opacity: 0;

}

5% {

opacity: 1;

}

100% {

-webkit-transform: scale(1);

transform: scale(1);

opacity: 0;

}

}

@keyframes jumper {

0% {

-webkit-transform: scale(0);

transform: scale(0);

opacity: 0;

}

5% {

opacity: 1;

}

100% {

更多推荐

css 涟漪,CSS3 简单的涟漪动画

本文发布于:2024-02-26 02:47:44,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1701106.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:涟漪   简单   动画   css

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!