zoukankan      html  css  js  c++  java
  • 博客园美化-好害羞版

    模版主题: Custom

    首页定制css代码

     1 :root{--sk-size:60px;--sk-color:#ffb3cc}
     2 #home{display:none}
     3 #loading{position:fixed;top:0;left:0;right:0;height:100vh;display:flex;justify-content:center;align-items:center;background-image:url();z-index:99999}
     4 .sk-fold{width:var(--sk-size);height:var(--sk-size);position:relative;transform:rotateZ(45deg)}
     5 .sk-fold-cube{float:left;width:50%;height:50%;position:relative;transform:scale(1.1)}
     6 .sk-fold-cube:before{content:"";position:absolute;top:0;left:0;width:100%;height:100%;background-color:var(--sk-color);animation:sk-fold 2.4s infinite linear both;transform-origin:100% 100%}
     7 .sk-fold-cube:nth-child(2){transform:scale(1.1) rotateZ(90deg)}
     8 .sk-fold-cube:nth-child(4){transform:scale(1.1) rotateZ(180deg)}
     9 .sk-fold-cube:nth-child(3){transform:scale(1.1) rotateZ(270deg)}
    10 .sk-fold-cube:nth-child(2):before{animation-delay:.3s}
    11 .sk-fold-cube:nth-child(4):before{animation-delay:.6s}
    12 .sk-fold-cube:nth-child(3):before{animation-delay:.9s}
    13 @keyframes sk-fold{
    14 0%,10%{transform:perspective(140px) rotateX(-180deg);opacity:0}
    15 25%,75%{transform:perspective(140px) rotateX(0);opacity:1}
    16 100%,90%{transform:perspective(140px) rotateY(180deg);opacity:0}}

    特别注意:禁用模板默认CSS >>>打上勾

    博客侧边栏公告(支持HTML代码) (支持 JS 代码)// js权限需要申请

     1 <script src="https://guangzan.gitee.io/awescnb/index.js"></script>
     2 <script>$.awesCnb({
     3 theme: {
     4 name: 'acg', // 在这里配置全局主题:'acg' 'gshang' 'light' 'reacg'
     5 color:"deeppink", // 全局主题颜色
     6 headerBackground: "http://bbsimg.ubgame.com/data/attachment/forum/201610/25/211052a4yy8h558eh2ak7j.jpg", //顶部背景图片地址
     7 avatar: "https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1581437543522&di=b6dedec1059c0235e3fc3af9b0cdd10c&imgtype=0&src=http%3A%2F%2Fimgq.duitang.com%2Fuploads%2Fitem%2F201208%2F18%2F20120818131753_UMLNw.thumb.700_0.jpeg", //头像地址
     8 },
     9 
    10 });
    11 </script>

    首页HTML代码

    1 <section id="loading">
    2   <div class="sk-fold">
    3     <div class="sk-fold-cube"></div>
    4     <div class="sk-fold-cube"></div>
    5     <div class="sk-fold-cube"></div>
    6     <div class="sk-fold-cube"></div>
    7   </div>
    8 </section>
     1 // 折线更随,添加在首页html代码里面
     2 
     3 <script>
     4   
     5 !function(){
     6   
     7  function n(n,e,t){
     8   
     9  return n.getAttribute(e)||t
    10   
    11  }
    12   
    13  function e(n){
    14   
    15  return document.getElementsByTagName(n)
    16   
    17  }
    18   
    19  function t(){
    20   
    21  var t=e("script"),o=t.length,i=t[o-1];
    22   
    23  return{
    24   
    25  l:o,z:n(i,"zIndex",-1),o:n(i,"opacity",.5),c:n(i,"color","0,0,0"),n:n(i,"count",99)
    26   
    27  }
    28   
    29  }
    30   
    31  function o(){
    32   
    33  a=m.width=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,
    34   
    35  c=m.height=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight
    36   
    37  }
    38   
    39  function i(){
    40   
    41  r.clearRect(0,0,a,c);
    42   
    43  var n,e,t,o,m,l;
    44   
    45  s.forEach(function(i,x){
    46   
    47  for(i.x+=i.xa,i.y+=i.ya,i.xa*=i.x>a||i.x<0?-1:1,i.ya*=i.y>c||i.y<0?-1:1,r.fillRect(i.x-.5,i.y-.5,1,1),e=x+1;e<u.length;e++)n=u[e],
    48   
    49  null!==n.x&&null!==n.y&&(o=i.x-n.x,m=i.y-n.y,
    50   
    51  l=o*o+m*m,l<n.max&&(n===y&&l>=n.max/2&&(i.x-=.03*o,i.y-=.03*m),
    52   
    53  t=(n.max-l)/n.max,r.beginPath(),r.lineWidth=t/2,r.strokeStyle="rgba("+d.c+","+(t+.2)+")",r.moveTo(i.x,i.y),r.lineTo(n.x,n.y),r.stroke()))
    54   
    55  }),
    56  
    57  x(i)
    58   
    59  }
    60   
    61  var a,c,u,m=document.createElement("canvas"),
    62   
    63  d=t(),l="c_n"+d.l,r=m.getContext("2d"),
    64 x=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||
    65   
    66  function(n){
    67  
    68  window.setTimeout(n,1e3/45)
    69   
    70  },
    71   
    72  w=Math.random,y={x:null,y:null,max:2e4};m.id=l,m.style.cssText="position:fixed;top:0;left:0;z-index:"+d.z+";opacity:"+d.o,e("body")[0].appendChild(m),o(),window.onresize=o,
    73   
    74  window.onmousemove=function(n){
    75   
    76  n=n||window.event,y.x=n.clientX,y.y=n.clientY
    77   
    78  },
    79   
    80  window.onmouseout=function(){
    81   
    82  y.x=null,y.y=null
    83   
    84  };
    85   
    86  for(var s=[],f=0;d.n>f;f++){
    87   
    88  var h=w()*a,g=w()*c,v=2*w()-1,p=2*w()-1;s.push({x:h,y:g,xa:v,ya:p,max:6e3})
    89   
    90  }
    91   
    92  u=s.concat([y]),
    93   
    94  setTimeout(function(){i()},100)
    95   
    96  }();
    97   
    98  </script>
  • 相关阅读:
    有关远程设置的问题
    QT使用tableWidget显示双排列表 而且选中用红框圈出来
    一个程序猿的跨洋找工作分享
    linux块设备的IO调度算法和回写机制
    基于servlet实现一个web框架
    Java中的条件编译(转)
    Android NDK 使用第三方静态库(转)
    Android 使用动态库或静态库来编译生成动态库(转)
    Android应用运行过程(转)
    android NDK编译(导入).a文件和编译多个so文件(转)
  • 原文地址:https://www.cnblogs.com/zwnsyw/p/12296976.html
Copyright © 2011-2022 走看看