右下角使用css,CSS3 屏幕右下角的径向菜单

CSS

语言:

CSSSCSS

确定

@-webkit-keyframes badbounce {

0%, 100% {

-webkit-transform: translateY(0px);

}

10% {

-webkit-transform: translateY(6px);

}

30% {

-webkit-transform: translateY(-4px);

}

70% {

-webkit-transform: translateY(3px);

}

90% {

-webkit-transform: translateY(-2px);

}

}

@-moz-keyframes badbounce {

0%, 100% {

-moz-transform: translateY(0px);

}

10% {

-moz-transform: translateY(6px);

}

30% {

-moz-transform: translateY(-4px);

}

70% {

-moz-transform: translateY(3px);

}

90% {

-moz-transform: translateY(-2px);

}

}

@keyframes badbounce {

0%, 100% {

-webkit-transform: translateY(0px);

-moz-transform: translateY(0px);

-ms-transform: translateY(0px);

-o-transform: translateY(0px);

transform: translateY(0px);

}

10% {

-webkit-transform: translateY(6px);

-moz-transform: translateY(6px);

-ms-transform: translateY(6px);

-o-transform: translateY(6px);

transform: translateY(6px);

}

30% {

-webkit-transform: translateY(-4px);

-moz-transform: translateY(-4px);

-ms-transform: translateY(-4px);

-o-transform: translateY(-4px);

transform: translateY(-4px);

}

70% {

-webkit-transform: translateY(3px);

-moz-transform: translateY(3px);

-ms-transform: translateY(3px);

-o-transform: translateY(3px);

transform: translateY(3px);

}

90% {

-webkit-transform: translateY(-2px);

-moz-transform: translateY(-2px);

-ms-transform: translateY(-2px);

-o-transform: translateY(-2px);

transform: translateY(-2px);

}

}

.ss_animate {

-webkit-animation: badbounce 1s linear;

-moz-animation: badbounce 1s linear;

animation: badbounce 1s linear;

}

html,

body {

width: 100%;

height: 100%;

background: #212121;

margin: 0;

padding: 0;

}

#ss_menu {

bottom: 30px;

width: 60px;

height: 60px;

color: #fff;

position: fixed;

-webkit-transition: all 1s ease;

-moz-transition: all 1s ease;

transition: all 1s ease;

right: 30px;

-webkit-transform: rotate(180deg);

-moz-transform: rotate(180deg);

-ms-transform: rotate(180deg);

-o-transform: rotate(180deg);

transform: rotate(180deg);

}

#ss_menu > .menu {

display: block;

position: absolute;

border-radius: 50%;

width: 60px;

height: 60px;

font-size: 30px;

text-align: center;

padding: 15px 0;

box-shadow: 0 3px 10px rgba(0, 0, 0, 0.23), 0 3px 10px rgba(0, 0, 0, 0.16);

color: #fff;

-webkit-transition: all 1s ease;

-moz-transition: all 1s ease;

transition: all 1s ease;

}

#ss_menu > .menu.ss_active {

background: #00796b;

-webkit-transform: scale(0.7);

-moz-transform: scale(0.7);

-ms-transform: scale(0.7);

-o-transform: scale(0.7);

transform: scale(0.7);

}

#ss_menu div {

-webkit-box-sizing: border-box;

-moz-box-sizing: border-box;

box-sizing: border-box;

position: absolute;

width: 60px;

height: 60px;

font-size: 30px;

text-align: center;

background: #00796b;

border-radius: 50%;

display: table;

}

#ss_menu div i {

display: table-cell;

vertical-align: middle;

}

#ss_menu div:hover {

background: #009688;

cursor: pointer;

}

#ss_menu div:nth-child(1) {

top: 0px;

left: -160px;

}

#ss_menu div:nth-child(2) {

top: -80px;

left: -138.56406px;

}

#ss_menu div:nth-child(3) {

top: -138.56406px;

left: -80px;

}

#ss_menu div:nth-child(4) {

top: -160px;

left: 0px;

}

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值