春节中国风灯笼挂饰代码

[复制链接]
ad***官方认证 发表于 2021-2-24 14:36:43 | 显示全部楼层 |阅读模式
ad*** 2021-2-24 14:36:43 1264 0 显示全部楼层

注册账号-全站资源免费下载

您需要 登录 才可以下载或查看,没有账号?注册账号

x

202102079089_3435.png
  1. <!-- 灯笼1 -->

  2. <div class="deng-box">

  3. <div class="deng">

  4. <div class="xian"></div>

  5. <div class="deng-a">

  6. <div class="deng-b"><div class="deng-t">节</div></div>

  7. </div>

  8. <div class="shui shui-a"><div class="shui-c"></div><div class="shui-b"></div></div>

  9. </div>

  10. </div>



  11. <!-- 灯笼2 -->

  12. <div class="deng-box1">

  13. <div class="deng">

  14. <div class="xian"></div>

  15. <div class="deng-a">

  16. <div class="deng-b"><div class="deng-t">春</div></div>

  17. </div>

  18. <div class="shui shui-a"><div class="shui-c"></div><div class="shui-b"></div></div>

  19. </div>

  20. </div>

  21. <style>

  22. .deng-box {

  23. position: fixed;

  24. top: -40px;

  25. right: -20px;

  26. z-index: 9999;

  27. pointer-events: none;

  28. }



  29. .deng-box1 {

  30. position: fixed;

  31. top: -30px;

  32. right: 10px;

  33. z-index: 9999;

  34. pointer-events: none;

  35. }

  36. .deng-box1 .deng {

  37. position: relative;

  38. width: 120px;

  39. height: 90px;

  40. margin: 50px;

  41. background: #d8000f;

  42. background: rgba(216, 0, 15, 0.8);

  43. border-radius: 50% 50%;

  44. -webkit-transform-origin: 50% -100px;

  45. -webkit-animation: swing 5s infinite ease-in-out;

  46. box-shadow: -5px 5px 30px 4px rgba(252, 144, 61, 1);

  47. }

  48. .deng {

  49. position: relative;

  50. width: 120px;

  51. height: 90px;

  52. margin: 50px;

  53. background: #d8000f;

  54. background: rgba(216, 0, 15, 0.8);

  55. border-radius: 50% 50%;

  56. -webkit-transform-origin: 50% -100px;

  57. -webkit-animation: swing 3s infinite ease-in-out;

  58. box-shadow: -5px 5px 50px 4px rgba(250, 108, 0, 1);

  59. }

  60. .deng-a {

  61. width: 100px;

  62. height: 90px;

  63. background: #d8000f;

  64. background: rgba(216, 0, 15, 0.1);

  65. margin: 12px 8px 8px 10px;

  66. border-radius: 50% 50%;

  67. border: 2px solid #dc8f03;

  68. }

  69. .deng-b {

  70. width: 45px;

  71. height: 90px;

  72. background: #d8000f;

  73. background: rgba(216, 0, 15, 0.1);

  74. margin: -2px 8px 8px 26px;

  75. border-radius: 50% 50%;

  76. border: 2px solid #dc8f03;

  77. }

  78. .xian {

  79. position: absolute;

  80. top: -20px;

  81. left: 60px;

  82. width: 2px;

  83. height: 20px;

  84. background: #dc8f03;

  85. }

  86. .shui-a {

  87. position: relative;

  88. width: 5px;

  89. height: 20px;

  90. margin: -5px 0 0 59px;

  91. -webkit-animation: swing 4s infinite ease-in-out;

  92. -webkit-transform-origin: 50% -45px;

  93. background: #ffa500;

  94. border-radius: 0 0 5px 5px;

  95. }

  96. .shui-b {

  97. position: absolute;

  98. top: 14px;

  99. left: -2px;

  100. width: 10px;

  101. height: 10px;

  102. background: #dc8f03;

  103. border-radius: 50%;

  104. }

  105. .shui-c {

  106. position: absolute;

  107. top: 18px;

  108. left: -2px;

  109. width: 10px;

  110. height: 35px;

  111. background: #ffa500;

  112. border-radius: 0 0 0 5px;

  113. }

  114. .deng:before {

  115. position: absolute;

  116. top: -7px;

  117. left: 29px;

  118. height: 12px;

  119. width: 60px;

  120. content: " ";

  121. display: block;

  122. z-index: 999;

  123. border-radius: 5px 5px 0 0;

  124. border: solid 1px #dc8f03;

  125. background: #ffa500;

  126. background: linear-gradient(to right, #dc8f03, #ffa500, #dc8f03, #ffa500, #dc8f03);

  127. }

  128. .deng:after {

  129. position: absolute;

  130. bottom: -7px;

  131. left: 10px;

  132. height: 12px;

  133. width: 60px;

  134. content: " ";

  135. display: block;

  136. margin-left: 20px;

  137. border-radius: 0 0 5px 5px;

  138. border: solid 1px #dc8f03;

  139. background: #ffa500;

  140. background: linear-gradient(to right, #dc8f03, #ffa500, #dc8f03, #ffa500, #dc8f03);

  141. }

  142. .deng-t {

  143. font-family: 华文行楷,Arial,Lucida Grande,Tahoma,sans-serif;

  144. font-size: 3.2rem;

  145. color: #dc8f03;

  146. font-weight: bold;

  147. line-height: 85px;

  148. text-align: center;

  149. }

  150. .night .deng-t,

  151. .night .deng-box,

  152. .night .deng-box1 {

  153. background: transparent !important;

  154. }

  155. @-moz-keyframes swing {

  156. 0% {

  157. -moz-transform: rotate(-10deg)

  158. }

  159. 50% {

  160. -moz-transform: rotate(10deg)

  161. }



  162. 100% {

  163. -moz-transform: rotate(-10deg)

  164. }

  165. }

  166. @-webkit-keyframes swing {

  167. 0% {

  168. -webkit-transform: rotate(-10deg)

  169. }

  170. 50% {

  171. -webkit-transform: rotate(10deg)

  172. }

  173. 100% {

  174. -webkit-transform: rotate(-10deg)

  175. }

  176. }

  177. </style>
复制代码






上一篇:温泉PHP授权系统验证系统完整开源
下一篇:一款十分简洁的代挂引导HTML源码
这个家伙很赖,还没有设置签名
您需要登录后才可以回帖 登录 | 注册账号

本版积分规则 返回列表 发新帖

快速回复 返回顶部 返回列表