html中文字上下滚动带链接,CSS3 文本上下滚动轮播效果(带边框)

CSS

语言:

CSSSCSS

确定

body {

width: 100%;

height: 100%;

position: fixed;

background-color: #34495e;

}

.content {

width: 237px;

font-size: 36px;

line-height: 40px;

font-family: 'Muli';

color: #ecf0f1;

height: 40px;

position: absolute;

top: 50%;

left: 50%;

margin-top: -15px;

margin-left: -118px;

}

.content:before {

content: '[';

position: absolute;

left: -30px;

line-height: 40px;

}

.content:after {

content: ']';

position: absolute;

right: -30px;

line-height: 40px;

}

.content:after,

.content:before {

color: #16a085;

font-size: 42px;

animation: 2s linear 0s normal none infinite opacity;

-webkit-animation: 2s ease-out 0s normal none infinite opacity;

-moz-animation: 2s ease-out 0s normal none infinite opacity;

-o-animation: 2s ease-out 0s normal none infinite opacity;

}

.visible {

float: left;

font-weight: 600;

overflow: hidden;

height: 40px;

}

p {

display: inline;

float: left;

margin: 0;

}

ul {

margin-top: 0;

padding-left: 110px;

text-align: left;

list-style: none;

animation: 6s linear 0s normal none infinite change;

-webkit-animation: 6s linear 0s normal none infinite change;

-moz-animation: 6s linear 0s normal none infinite change;

-o-animation: 6s linear 0s normal none infinite change;

}

ul li {

line-height: 40px;

margin: 0;

}

@-webkit-keyframes opacity {

0% {

opacity: 0;

}

50% {

opacity: 1;

}

100% {

opacity: 0;

}

}

@keyframes opacity {

0% {

opacity: 0;

}

50% {

opacity: 1;

}

100% {

opacity: 0;

}

}

@-webkit-keyframes change {

0% {

margin-top: 0;

}

15% {

margin-top: 0;

}

25% {

margin-top: -40px;

}

40% {

margin-top: -40px;

}

50% {

margin-top: -80px;

}

65% {

margin-top: -80px;

}

75% {

margin-top: -40px;

}

85% {

margin-top: -40px;

}

100% {

margin-top: 0;

}

}

@keyframes change {

0% {

margin-top: 0;

}

15% {

margin-top: 0;

}

25% {

margin-top: -40px;

}

40% {

margin-top: -40px;

}

50% {

margin-top: -80px;

}

65% {

margin-top: -80px;

}

75% {

margin-top: -40px;

}

85% {

margin-top: -40px;

}

100% {

margin-top: 0;

}

}

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值