html and css3 js制作逗比效果前端只有你想不到没有它做不到的cid1101


Warning: Undefined property: stdClass::$maxbutton id="5" in /www/wwwroot/code.5g-o.com/wp-content/plugins/kama-clic-counter/class.KCCounter.php on line 733
<!DOCTYPE html>
<html lang="en">
   <head>
      <meta charset="UTF-8" />
      <meta http-equiv="X-UA-Compatible" content="IE=edge">
      <title>PROFILE</title>
      <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
      <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
       
       <style>
       
       /*--------------------
Body
--------------------*/
*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  height: 100%;
  background: #fb527a;
}

/*--------------------
Mixins
--------------------*/
/*--------------------
Wrapper
--------------------*/
.wrapper {
  position: absolute;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
          transform: translate(-50%, -50%);
  width: 369px;
  height: 547px;
  font-family: 'Source Sans Pro', sans-serif;
  -webkit-transform-style: preserve-3d;
          transform-style: preserve-3d;
  -webkit-transform: translate(-50%, -50%) perspective(600px) rotateY(20deg) rotateX(10deg);
          transform: translate(-50%, -50%) perspective(600px) rotateY(20deg) rotateX(10deg);
}

/*--------------------
Me
--------------------*/
.me {
  position: relative;
  width: 369px;
  height: 547px;
  -webkit-transform: translateZ(80px) scale(0.8);
          transform: translateZ(80px) scale(0.8);
}
.me::before, .me::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  border-radius: 10px;
  background: url("images/profile.png") no-repeat 0 0;
}
.me::after {
  height: 30px;
  top: auto;
  bottom: -15px;
  z-index: -1;
  -webkit-filter: blur(15px);
          filter: blur(15px);
  background-size: 100% 30px;
  border-radius: 100px;
}
.me .eye, .me .eye::before {
  width: 70px;
  height: 70px;
  position: absolute;
  top: 175px;
  left: 120px;
  z-index: -1;
  background: url(http://www.supah.it/dribbble/006/eye.png) no-repeat center;
}
.me .eye::before {
  content: '';
  top: -2px;
  left: 97px;
}

.text {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  width: 390px;
  height: 595px;
  -webkit-transform: translateZ(150px) translateX(-11px) translateY(-26px) scale(0.55);
          transform: translateZ(150px) translateX(-11px) translateY(-26px) scale(0.55);
  border: 3px solid white;
  text-align: center;
  font-size: 100px;
  line-height: 1000px;
  color: white;
  background: linear-gradient(135deg, white 0%, rgba(255, 255, 255, 0.36) 39%, rgba(255, 255, 255, 0.07) 41%, rgba(255, 255, 255, 0) 51%, black 100%);
  opacity: .3;
  border-radius: 8px;
}
.text::after {
  content: 'webdesigner';
  width: 100%;
  position: absolute;
  bottom: 22px;
  left: 0;
  width: 100%;
  z-index: 1;
  line-height: 1;
  font-size: 18px;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 20px;
  text-indent: 20px;
}
.social-icons li {
    display: inline;
    padding-right: 10px;
}
.social-icons li a i {
    font-size:20px;
    color: #000;
}
ul.social-icons.list-inline {
    text-align: center;
}
       
       
       </style>
       
       
       
       
       
       
       
   </head>
   <body>
<div class="wrapper">
  <div class="card">
    <div class="me">
      <div class="eye"></div>
    </div>
    <div class="text">
      DEMON
    	
    </div>
  </div>
  <ul class="social-icons list-inline">
            <li><a href="#"><i class="fa fa-facebook" aria-hidden="true"></i></a></li>
            <li><a href="#"><i class="fa fa-twitter" aria-hidden="true"></i></a></li>
            <li><a href="#"><i class="fa fa-linkedin" aria-hidden="true"></i></a></li>
            <li><a href="#"><i class="fa fa-google-plus" aria-hidden="true"></i></a></li>
            <li><a href="#"><i class="fa fa-instagram" aria-hidden="true"></i></a></li>
            
        </ul>
</div>
      <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
      
      <script>
       
       var $wrap = $('.wrapper'),
  $lEye = $('.eye'),
  lFollowX = 5,
  lFollowY = 10,
  x = 0,
  y = 0,
  friction = 1 / 12;

function animate() {
  x += (lFollowX - x) * friction;
  y += (lFollowY - y) * friction;

  $lEye.css({
    '-webit-transform': 'translate(' + -x + 'px, ' + -y + 'px)',
    '-moz-transform': 'translate(' + -x + 'px, ' + -y + 'px)',
    'transform': 'translate(' + -x + 'px, ' + -y + 'px)'
  });

  $wrap.css({
    'transform': 'translate(-50%, -50%) perspective(600px) rotateY(' + -x + 'deg) rotateX(' + y + 'deg)'
  });
  window.requestAnimationFrame(animate);
}

$(window).on('mousemove click', function(e) {

  var lMouseX = Math.max(-100, Math.min(100, $(window).width() / 2 - e.clientX));
  var lMouseY = Math.max(-100, Math.min(100, $(window).height() / 2 - e.clientY));
  lFollowX = (12 * lMouseX) / 100; // 100 : 12 = lMouxeX : lFollow
  lFollowY = (10 * lMouseY) / 100;

});

animate();
       </script>
      
   
      
   </body>
</html>

在线演示


让链接同时具备两种打开方式
获取源码: Goggle
下载数:98人次, 文件大小: 299.7 KB, 上传日期: 2020年-11月-25日

公众号回复:gcode  获取解压密码

qrcode_for_gh_6ea2c28a1709_258 (1)

2,515 人查阅

一键获取本网站前端代码设计的所有源码

获取资源构建和完善自己的源码库
源码可以在本地直接演示
同时研究和体验 如何将一些具体的想法的实现过程
源码可以直接嫁接到自己的网站里复用
稍作修改成为自己的作品
下载 (4)

您需要先支付 6元 才能查看此处内容!立即支付

类似文章