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


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

    一、创建小程序组件

    二、代码

    wxml:

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

    wxss:

    1. .topBar-1{
    2. position: absolute;
    3. width: 100%;
    4. height: 190rpx;
    5. z-index: 150;
    6. backdrop-filter: blur(1px);
    7. background-color: rgba(29, 29, 29, 0.001)
    8. }
    9. .topBar-2{
    10. position: absolute;
    11. width: 100%;
    12. height: 170rpx;
    13. z-index: 150;
    14. backdrop-filter: blur(1px);
    15. background-color: rgba(255, 255, 255, 0.002)
    16. }
    17. .topBar-3{
    18. position: absolute;
    19. width: 100%;
    20. height: 175rpx;
    21. z-index: 150;
    22. backdrop-filter: blur(1px);
    23. background-color: rgba(255, 255, 255, 0.003)
    24. }
    25. .topBar-4{
    26. position: absolute;
    27. width: 100%;
    28. height: 170rpx;
    29. z-index: 150;
    30. backdrop-filter: blur(1px);
    31. background-color: rgba(255, 255, 255, 0.004)
    32. }
    33. .topBar-5{
    34. position: absolute;
    35. width: 100%;
    36. height: 165rpx;
    37. z-index: 150;
    38. backdrop-filter: blur(1px);
    39. background-color: rgba(19, 2, 2, 0.005)
    40. }
    41. .topBar-6{
    42. position: absolute;
    43. width: 100%;
    44. height: 160rpx;
    45. z-index: 150;
    46. backdrop-filter: blur(1px);
    47. background-color: rgba(255, 255, 255, 0.006)
    48. }
    49. .topBar-7{
    50. position: absolute;
    51. width: 100%;
    52. height: 155rpx;
    53. z-index: 150;
    54. backdrop-filter: blur(1px);
    55. background-color: rgba(255, 255, 255, 0.007)
    56. }
    57. .topBar-8{
    58. position: absolute;
    59. width: 100%;
    60. height: 150rpx;
    61. z-index: 150;
    62. backdrop-filter: blur(1px);
    63. background-color: rgba(255, 255, 255, 0.008)
    64. }
    65. .topBar-9{
    66. position: absolute;
    67. width: 100%;
    68. height: 145rpx;
    69. z-index: 150;
    70. backdrop-filter: blur(2px);
    71. background-color: rgba(255, 255, 255, 0.009)
    72. }
    73. .topBar-10{
    74. position: absolute;
    75. width: 100%;
    76. height: 140rpx;
    77. z-index: 150;
    78. backdrop-filter: blur(2px);
    79. background-color: rgba(255, 255, 255, 0.010)
    80. }
    81. .topBar-11{
    82. position: absolute;
    83. width: 100%;
    84. height: 130rpx;
    85. z-index: 150;
    86. backdrop-filter: blur(2px);
    87. background-color: rgba(255, 255, 255, 0.011)
    88. }
    89. .topBar-12{
    90. position: absolute;
    91. width: 100%;
    92. height: 120rpx;
    93. z-index: 150;
    94. backdrop-filter: blur(2px);
    95. background-color: rgba(255, 255, 255, 0.012)
    96. }
    97. .topBar-13{
    98. position: absolute;
    99. width: 100%;
    100. height: 110rpx;
    101. z-index: 150;
    102. backdrop-filter: blur(2px);
    103. background-color: rgba(255, 255, 255, 0.013)
    104. }
    105. .topBar-14{
    106. position: absolute;
    107. width: 100%;
    108. height: 100rpx;
    109. z-index: 150;
    110. backdrop-filter: blur(2px);
    111. background-color: rgba(255, 255, 255, 0.014)
    112. }
    113. .topBar-15{
    114. position: absolute;
    115. width: 100%;
    116. height: 90rpx;
    117. z-index: 150;
    118. backdrop-filter: blur(5px);
    119. background-color: rgba(255, 255, 255, 0.015)
    120. }

  • 相关阅读:
    【手写协程】带你从底层实现一个最小协程调度器
    istio系列教程
    Taurus.MVC V3.0.3 微服务开源框架发布:让.NET 架构在大并发的演进过程更简单。
    Prometheus :(一)基本概念
    Python 合并两张图片
    A. Compare T-Shirt Sizes
    Java性能优化可算是讲明白了,优化权威指南就是强
    Linux postman脚本运行环境配置
    c语言-手写JSON解析
    【Qt之数据库操作】
  • 原文地址:https://blog.csdn.net/Qensq/article/details/133870608