微信小程序仿苹果负一屏由弱到强的高斯模糊

进入下面小程序可以体验效果,然后进入更多。查看模糊效果

一、创建小程序组件

二、代码

wxml:

<view class="topBar-15"></view>
<view class="topBar-14"></view>
<view class="topBar-13"></view>
<view class="topBar-12"></view>
<view class="topBar-11"></view>
<view class="topBar-10"></view>
<view class="topBar-9"></view>
<view class="topBar-8"></view>
<view class="topBar-7"></view>
<view class="topBar-6"></view>
<view class="topBar-5"></view>
<view class="topBar-4"></view>
<view class="topBar-3"></view>
<view class="topBar-2"></view>
<view class="topBar-1"></view>

wxss:

.topBar-1{
    position: absolute;
    width: 100%;
    height: 190rpx;
    z-index: 150;
    backdrop-filter: blur(1px);
    background-color: rgba(29, 29, 29, 0.001)
}
.topBar-2{
    position: absolute;
    width: 100%;
    height: 170rpx;
    z-index: 150;
    backdrop-filter: blur(1px);
    background-color: rgba(255, 255, 255, 0.002)
}
.topBar-3{
    position: absolute;
    width: 100%;
    height: 175rpx;
    z-index: 150;
    backdrop-filter: blur(1px);
    background-color: rgba(255, 255, 255, 0.003)
}
.topBar-4{
    position: absolute;
    width: 100%;
    height: 170rpx;
    z-index: 150;
    backdrop-filter: blur(1px);
    background-color: rgba(255, 255, 255, 0.004)
}
.topBar-5{
    position: absolute;
    width: 100%;
    height: 165rpx;
    z-index: 150;
    backdrop-filter: blur(1px);
    background-color: rgba(19, 2, 2, 0.005)
}
.topBar-6{
    position: absolute;
    width: 100%;
    height: 160rpx;
    z-index: 150;
    backdrop-filter: blur(1px);
    background-color: rgba(255, 255, 255, 0.006)
}
.topBar-7{
    position: absolute;
    width: 100%;
    height: 155rpx;
    z-index: 150;
    backdrop-filter: blur(1px);
    background-color: rgba(255, 255, 255, 0.007)
}
.topBar-8{
    position: absolute;
    width: 100%;
    height: 150rpx;
    z-index: 150;
    backdrop-filter: blur(1px);
    background-color: rgba(255, 255, 255, 0.008)
}
.topBar-9{
    position: absolute;
    width: 100%;
    height: 145rpx;
    z-index: 150;
    backdrop-filter: blur(2px);
    background-color: rgba(255, 255, 255, 0.009)
}

.topBar-10{
    position: absolute;
    width: 100%;
    height: 140rpx;
    z-index: 150;
    backdrop-filter: blur(2px);
    background-color: rgba(255, 255, 255, 0.010)
}

.topBar-11{
    position: absolute;
    width: 100%;
    height: 130rpx;
    z-index: 150;
    backdrop-filter: blur(2px);
    background-color: rgba(255, 255, 255, 0.011)
}

.topBar-12{
    position: absolute;
    width: 100%;
    height: 120rpx;
    z-index: 150;
    backdrop-filter: blur(2px);
    background-color: rgba(255, 255, 255, 0.012)
}
.topBar-13{
    position: absolute;
    width: 100%;
    height: 110rpx;
    z-index: 150;
    backdrop-filter: blur(2px);
    background-color: rgba(255, 255, 255, 0.013)
}
.topBar-14{
    position: absolute;
    width: 100%;
    height: 100rpx;
    z-index: 150;
    backdrop-filter: blur(2px);
    background-color: rgba(255, 255, 255, 0.014)
}
.topBar-15{
    position: absolute;
    width: 100%;
    height: 90rpx;
    z-index: 150;
    backdrop-filter: blur(5px);
    background-color: rgba(255, 255, 255, 0.015)
}

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

Qensq

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值