免費論壇 繁體 | 簡體
Sclub交友聊天~加入聊天室當版主
分享
🌓黑暗模式
帖子

返回列表 发帖
查看: 237|回复: 0 收起左侧
开启左侧收起左侧开启左侧
上一主题 下一主题 打印

[分享] Sclub 论坛顶部喜庆灯笼代码   [复制链接]

把下方的代码添加到广告位、网站第三方统计代码或其他头部信息。
  1. <!-- 灯笼1 -->
  2. <div class="deng-box1">
  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-box2">
  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. <!-- 灯笼3 -->
  22. <div class="deng-box3">
  23.         <div class="deng">
  24.                 <div class="xian"></div>
  25.                 <div class="deng-a">
  26.                         <div class="deng-b"><div class="deng-t">乐</div></div>
  27.                 </div>
  28.                 <div class="shui shui-a"><div class="shui-c"></div><div class="shui-b"></div></div>
  29.         </div>
  30. </div>

  31. <!-- 灯笼4 -->
  32. <div class="deng-box4">
  33.         <div class="deng">
  34.                 <div class="xian"></div>
  35.                 <div class="deng-a">
  36.                         <div class="deng-b"><div class="deng-t">快</div></div>
  37.                 </div>
  38.                 <div class="shui shui-a"><div class="shui-c"></div><div class="shui-b"></div></div>
  39.         </div>
  40. </div>
  41. <style>
  42. .deng-box1 {
  43.         position: fixed;
  44.         top: -30px;
  45.         left: 10px;
  46.         z-index: 9999;
  47.         pointer-events: none;
  48. }

  49. .deng-box2 {
  50.         position: fixed;
  51.         top: -25px;
  52.         left: 150px;
  53.         z-index: 9999;
  54.         pointer-events: none;
  55. }

  56. .deng-box3 {
  57.         position: fixed;
  58.         top: -28px;
  59.         right: 10px;
  60.         z-index: 9999;
  61.         pointer-events: none;
  62. }

  63. .deng-box4 {
  64.         position: fixed;
  65.         top: -26px;
  66.         right: 150px;
  67.         z-index: 9999;
  68.         pointer-events: none;
  69. }

  70. .deng-box1 .deng {
  71.         position: relative;
  72.         width: 120px;
  73.         height: 90px;
  74.         margin: 50px;
  75.         background: #d8000f;
  76.         background: rgba(216, 0, 15, 0.8);
  77.         border-radius: 50% 50%;
  78.         -webkit-transform-origin: 50% -100px;
  79.         -webkit-animation: swing 3s infinite ease-in-out;
  80.         box-shadow: -5px 5px 50px 4px rgba(250, 108, 0, 1);
  81. }

  82. .deng-box2 .deng {
  83.         position: relative;
  84.         width: 120px;
  85.         height: 90px;
  86.         margin: 50px;
  87.         background: #d8000f;
  88.         background: rgba(216, 0, 15, 0.8);
  89.         border-radius: 50% 50%;
  90.         -webkit-transform-origin: 50% -100px;
  91.         -webkit-animation: swing 4s infinite ease-in-out;
  92.         box-shadow: -5px 5px 30px 4px rgba(252, 144, 61, 1);
  93. }

  94. .deng-box3 .deng {
  95.         position: relative;
  96.         width: 120px;
  97.         height: 90px;
  98.         margin: 50px;
  99.         background: #d8000f;
  100.         background: rgba(216, 0, 15, 0.8);
  101.         border-radius: 50% 50%;
  102.         -webkit-transform-origin: 50% -100px;
  103.         -webkit-animation: swing 5s infinite ease-in-out;
  104.         box-shadow: -5px 5px 50px 4px rgba(250, 108, 0, 1);
  105. }

  106. .deng-box4 .deng {
  107.         position: relative;
  108.         width: 120px;
  109.         height: 90px;
  110.         margin: 50px;
  111.         background: #d8000f;
  112.         background: rgba(216, 0, 15, 0.8);
  113.         border-radius: 50% 50%;
  114.         -webkit-transform-origin: 50% -100px;
  115.         -webkit-animation: swing 4s infinite ease-in-out;
  116.         box-shadow: -5px 5px 30px 4px rgba(252, 144, 61, 1);
  117. }

  118. .deng-a {
  119.         width: 100px;
  120.         height: 90px;
  121.         background: #d8000f;
  122.         background: rgba(216, 0, 15, 0.1);
  123.         margin: 12px 8px 8px 10px;
  124.         border-radius: 50% 50%;
  125.         border: 2px solid #dc8f03;
  126. }

  127. .deng-b {
  128.         width: 45px;
  129.         height: 90px;
  130.         background: #d8000f;
  131.         background: rgba(216, 0, 15, 0.1);
  132.         margin: -2px 8px 8px 26px;
  133.         border-radius: 50% 50%;
  134.         border: 2px solid #dc8f03;
  135. }

  136. .xian {
  137.         position: absolute;
  138.         top: -50px;
  139.         left: 60px;
  140.         width: 2px;
  141.         height: 50px;
  142.         background: #dc8f03;
  143. }

  144. .shui-a {
  145.         position: relative;
  146.         width: 5px;
  147.         height: 20px;
  148.         margin: -5px 0 0 59px;
  149.         -webkit-animation: swing 4s infinite ease-in-out;
  150.         -webkit-transform-origin: 50% -45px;
  151.         background: #ffa500;
  152.         border-radius: 0 0 5px 5px;
  153. }

  154. .shui-b {
  155.         position: absolute;
  156.         top: 14px;
  157.         left: -2px;
  158.         width: 10px;
  159.         height: 10px;
  160.         background: #dc8f03;
  161.         border-radius: 50%;
  162. }

  163. .shui-c {
  164.         position: absolute;
  165.         top: 18px;
  166.         left: -2px;
  167.         width: 10px;
  168.         height: 35px;
  169.         background: #ffa500;
  170.         border-radius: 0 0 0 5px;
  171. }

  172. .deng:before {
  173.         position: absolute;
  174.         top: -7px;
  175.         left: 29px;
  176.         height: 12px;
  177.         width: 60px;
  178.         content: " ";
  179.         display: block;
  180.         z-index: 999;
  181.         border-radius: 5px 5px 0 0;
  182.         border: solid 1px #dc8f03;
  183.         background: #ffa500;
  184.         background: linear-gradient(to right, #dc8f03, #ffa500, #dc8f03, #ffa500, #dc8f03);
  185. }

  186. .deng:after {
  187.         position: absolute;
  188.         bottom: -7px;
  189.         left: 10px;
  190.         height: 12px;
  191.         width: 60px;
  192.         content: " ";
  193.         display: block;
  194.         margin-left: 20px;
  195.         border-radius: 0 0 5px 5px;
  196.         border: solid 1px #dc8f03;
  197.         background: #ffa500;
  198.         background: linear-gradient(to right, #dc8f03, #ffa500, #dc8f03, #ffa500, #dc8f03);
  199. }

  200. .deng-t {
  201.         font-family: 华文行楷,Arial,Lucida Grande,Tahoma,sans-serif;
  202.         font-size: 3.2rem;
  203.         color: #dc8f03;
  204.         font-weight: bold;
  205.         line-height: 85px;
  206.         text-align: center;
  207. }

  208. .night .deng-t,
  209. .night .deng-box,
  210. .night .deng-box1 {
  211.         background: transparent !important;
  212. }

  213. @-moz-keyframes swing {
  214.         0% {
  215.                 -moz-transform: rotate(-10deg)
  216.         }

  217.         50% {
  218.                 -moz-transform: rotate(10deg)
  219.         }

  220.         100% {
  221.                 -moz-transform: rotate(-10deg)
  222.         }
  223. }

  224. @-webkit-keyframes swing {
  225.         0% {
  226.                 -webkit-transform: rotate(-10deg)
  227.         }

  228.         50% {
  229.                 -webkit-transform: rotate(10deg)
  230.         }

  231.         100% {
  232.                 -webkit-transform: rotate(-10deg)
  233.         }
  234. }
  235. </style>
复制代码

最近看过此主题的会员

無名
访问时间:2023-04-06 19:20

上一篇已经是第一篇主题

下一篇支持手机端的html5 mp4视频播放器代码

点评
B Color Link Smilies

您还可以输入:个字符
X

 X

返回列表 发帖
快速
返回顶部
返回首页