整合營銷服務商

          電腦端+手機端+微信端=數據同步管理

          免費咨詢熱線:

          內網穿透

          內網穿透

          和外部系統對接時,經常需要將本地的服務,暴露到外網中。這時候,就需要使用內網穿透工具了。例如說:支付寶回調、微信支付回調、微信公眾號接入、微信小程序接入等等。

          常見的內網穿透工具,例如說,ngrok、frp 、natapa 等等。

          這里,我們使用 natapp 作為內網穿透工具,轉發到后端的 48080 端口。

          1、第一步,購買隧道

          訪問 https://natapp.cn/tunnel/buy/free 地址,免費購買一個隧道。如下圖所示:

          2、 第二步,啟動隧道

          購買完成后,參考 《NATAPP 1 分鐘快速新手圖文教程》文檔,將 natapp 進行啟動。將natapp分配的網址,鼠標選定然后復制下來(選定之后單擊鼠標右鍵),在瀏覽器中訪問,可以看到內網穿透成功了。如下圖所示:

          如若轉載,請注明出處:開源字節 https://sourcebyte.vip/article/367.html

          得不錯的前端工具類網站

          1、Grid布局生成

          https://cssgrid-generator.netlify.app

          2、擬物按鈕樣式生成

          https://neumorphism.io

          3、玻璃形態效果

          https://www.lingdaima.com/glass

          4、一些Button、checkBox、switch、card的css樣式

          https://www.lingdaima.com/css

          5、CSS陰影生成

          https://www.lingdaima.com/shadow

          6、一些CSS代碼片段庫

          https://lhammer.cn/You-need-to-know-css

          如若轉載,請注明出處:開源字節 https://sourcebyte.vip/article/387.html

          言:

          圣誕節快到了,是不是要給女朋友或者正在追求的妹子一點小驚喜呢,今天這篇博客就分享下前端代碼如何實現3D立體動態相冊。趕緊學會了,來制作屬于我們程序員的浪漫吧!先上效果圖,來引起下你們的興趣。

          正文:

          一、新建一個index.html的文件,代碼如下

          <!DOCTYPE html>
          <html lang="en">
          <head>
          <meta charset="UTF-8">
          <title>純CSS實現鼠標經過3D立體動態展示圖片特效代碼</title>
          <link type="text/css" href="css/style.css" rel="stylesheet" />
          </head>
          <body>
          <div class="box">
          	<ul class="minbox">
          		<li></li>
          		<li></li>
          		<li></li>
          		<li></li>
          		<li></li>
          		<li></li>
          	</ul>
          	<ol class="maxbox">
          		<li></li>
          		<li></li>
          		<li></li>
          		<li></li>
          		<li></li>
          		<li></li>
          	</ol>
          </div>
          </body>
          </html>

          二、css樣式的代碼

          @charset "utf-8";
          *{
          	margin:0;
          	padding:0;
          }
          body{
          	max-width: 100%;
          	min-width: 100%;
          	height: 100%;
          	background-size: cover;
          	background-repeat: no-repeat;
          	background-attachment: fixed;
          	background-size:100% 100%;
          	position: absolute;
          	margin-left: auto;
          	margin-right: auto;
          }
          li{
          	list-style: none;
          }
          .box{
          	width:200px;
          	height:200px;
          	background-size: cover;
          	background-repeat: no-repeat;
          	background-attachment: fixed;
          	background-size:100% 100%;
          	position: absolute;
          	margin-left: 42%;
          	margin-top: 22%;
          	-webkit-transform-style:preserve-3d;
          	-webkit-transform:rotateX(13deg);
          	-webkit-animation:move 5s linear infinite;
          }
          .minbox{
          	width:100px;
          	height:100px;
          	position: absolute;
          	left:50px;
          	top:30px;
          	-webkit-transform-style:preserve-3d;
          }
          .minbox li{
          	width:100px;
          	height:100px;
          	position: absolute;
          	left:0;
          	top:0;
          }
          .minbox li:nth-child(1){
          	background: url(../img/01.png) no-repeat 0 0;
          	-webkit-transform:translateZ(50px);
          }
          .minbox li:nth-child(2){
          	background: url(../img/02.png) no-repeat 0 0;
          	-webkit-transform:rotateX(180deg) translateZ(50px);
          }
          .minbox li:nth-child(3){
          	background: url(../img/03.png) no-repeat 0 0;
          	-webkit-transform:rotateX(-90deg) translateZ(50px);
          }
          .minbox li:nth-child(4){
          	background: url(../img/04.png) no-repeat 0 0;
          	-webkit-transform:rotateX(90deg) translateZ(50px);
          }
          .minbox li:nth-child(5){
          	background: url(../img/05.png) no-repeat 0 0;
          	-webkit-transform:rotateY(-90deg) translateZ(50px);
          }
          .minbox li:nth-child(6){
          	background: url(../img/06.png) no-repeat 0 0;
          	-webkit-transform:rotateY(90deg) translateZ(50px);
          }
          .maxbox li:nth-child(1){
          	background: url(../img/1.png) no-repeat 0 0;
          	-webkit-transform:translateZ(50px);
          }
          .maxbox li:nth-child(2){
          	background: url(../img/2.png) no-repeat 0 0;
          	-webkit-transform:translateZ(50px);
          }
          .maxbox li:nth-child(3){
          	background: url(../img/3.png) no-repeat 0 0;
          	-webkit-transform:rotateX(-90deg) translateZ(50px);
          }
          .maxbox li:nth-child(4){
          	background: url(../img/4.png) no-repeat 0 0;
          	-webkit-transform:rotateX(90deg) translateZ(50px);
          }
          .maxbox li:nth-child(5){
          	background: url(../img/5.png) no-repeat 0 0;
          	-webkit-transform:rotateY(-90deg) translateZ(50px);
          }
          .maxbox li:nth-child(6){
          	background: url(../img/6.png) no-repeat 0 0;
          	-webkit-transform:rotateY(90deg) translateZ(50px);
          }
          .maxbox{
          	width: 800px;
          	height: 400px;
          	position: absolute;
          	left: 0;
          	top: -20px;
          	-webkit-transform-style: preserve-3d;
          	
          }
          .maxbox li{
          	width: 200px;
          	height: 200px;
          	background: #fff;
          	border:1px solid #ccc;
          	position: absolute;
          	left: 0;
          	top: 0;
          	opacity: 0.2;
          	-webkit-transition:all 1s ease;
          }
          .maxbox li:nth-child(1){
          	-webkit-transform:translateZ(100px);
          }
          .maxbox li:nth-child(2){
          	-webkit-transform:rotateX(180deg) translateZ(100px);
          }
          .maxbox li:nth-child(3){
          	-webkit-transform:rotateX(-90deg) translateZ(100px);
          }
          .maxbox li:nth-child(4){
          	-webkit-transform:rotateX(90deg) translateZ(100px);
          }
          .maxbox li:nth-child(5){
          	-webkit-transform:rotateY(-90deg) translateZ(100px);
          }
          .maxbox li:nth-child(6){
          	-webkit-transform:rotateY(90deg) translateZ(100px);
          }
          .box:hover ol li:nth-child(1){
          	-webkit-transform:translateZ(300px);
          	width: 400px;
          	height: 400px;
          	opacity: 0.8;
          	left: -100px;
          	top: -100px;
          }
          .box:hover ol li:nth-child(2){
          	-webkit-transform:rotateX(180deg) translateZ(300px);
          	width: 400px;
          	height: 400px;
          	opacity: 0.8;
          	left: -100px;
          	top: -100px;
          }
          .box:hover ol li:nth-child(3){
          	-webkit-transform:rotateX(-90deg) translateZ(300px);
          	width: 400px;
          	height: 400px;
          	opacity: 0.8;
          	left: -100px;
          	top: -100px;
          }
          .box:hover ol li:nth-child(4){
          	-webkit-transform:rotateX(90deg) translateZ(300px);
          	width: 400px;
          	height: 400px;
          	opacity: 0.8;
          	left: -100px;
          	top: -100px;
          }
          .box:hover ol li:nth-child(5){
          	-webkit-transform:rotateY(-90deg) translateZ(300px);
          	width: 400px;
          	height: 400px;
          	opacity: 0.8;
          	left: -100px;
          	top: -100px;
          }
          .box:hover ol li:nth-child(6){
          	-webkit-transform:rotateY(90deg) translateZ(300px);
          	width: 400px;
          	height: 400px;
          	opacity: 0.8;
          	left: -100px;
          	top: -100px;
          }
          @keyframes move{
          	0%{
          		-webkit-transform: rotateX(13deg) rotateY(0deg);
          	}
          	100%{
          		-webkit-transform:rotateX(13deg) rotateY(360deg);
          	}
          }

          三、文件的目錄結構,把css文件放到css文件夾里,圖片放到img文件夾里。

          四、圖片尺寸不會修改的,可以選擇使用美圖秀秀網頁版很簡單

          五、容易出現的問題 ,圖片展示不全或展示的方向不對

          1.圖片尺寸需要修改 (解決展示不全的情況)

          上圖是我的圖片文件夾里放的圖片 ,首先01-06編號命名的圖片尺寸是100x100px的大小的,1-6編號是400x400px,如果效果想展示最佳,100x100px的圖片是以頭部特寫的照片最好,因為01-06是立體照片內部小正方體的照片,1-6編號是外部正方體的照片。

          2.圖片的方向需要修改(解決頭朝下的問題)

          修改的方向如上圖展示所示,比如第三張頭就應該朝下,否則形成的效果圖像會出現頭是倒著的情況。

          六、放一下動態效果圖

          總結:

          生活雖然總有辛酸,但是我們不應該減少去創造生活的樂趣,不斷尋找屬于自己的那份快樂,才應該是我們生活的態度。

          我自己是一名從事了多年開發的web前端老程序員,目前辭職在做自己的web前端私人定制課程,今年年初我花了一個月整理了一份最適合2019年學習的web前端學習干貨,各種框架都有整理,送給每一位前端小伙伴,想要獲取的可以關注我的頭條號并在后臺私信我:前端,即可免費獲取。

          原文鏈接:https://blog.csdn.net/jdk_wangtaida/article/details/103253883


          主站蜘蛛池模板: 中文国产成人精品久久一区| 中文字幕一区日韩精品| 中文无码AV一区二区三区| 国产精品视频一区二区三区经| 国产成人精品一区二三区| 无码精品人妻一区二区三区免费看| 国产成人av一区二区三区在线 | 91精品一区二区三区久久久久| 国产精品一区二区无线| 色噜噜狠狠一区二区| 国产一区二区三区高清视频| 国产精品成人一区无码| 久久精品无码一区二区三区免费| 日韩人妻无码一区二区三区99 | 精品国产精品久久一区免费式 | 亚洲AV无码第一区二区三区| 麻豆视传媒一区二区三区| 99久久精品午夜一区二区| 亚洲视频一区调教| 一区二区三区国产精品 | AV怡红院一区二区三区| 国产嫖妓一区二区三区无码| 亚洲av成人一区二区三区观看在线 | 亚洲av午夜精品一区二区三区| 国产在线精品观看一区| 精品一区二区三区无码视频| 国产在线步兵一区二区三区| 国产伦精品一区二区| 国产福利一区二区| 国产vr一区二区在线观看| 一区二区三区高清视频在线观看| 精品一区精品二区| 在线精品亚洲一区二区三区| 成人精品一区二区三区不卡免费看 | 精品国产区一区二区三区在线观看| 久久精品免费一区二区| 无码国产精品久久一区免费 | 中文字幕在线不卡一区二区| 成人精品视频一区二区| 日韩一区二区三区视频久久| 中文字幕日本一区|