精選文章

臉部保養日常|臉部保養產品分享(Bffect、露得清、CeraVe)

臉部保養日常 自己沒有在化妝,頂多就是擦潤色防曬乳,氣色好壞全寫在臉上 起床張開眼第一個面孔就是自己,睡前最後一張面孔也是自己 別人第一眼見到你,還是看你的臉,沒有理由不保養 保養方式、保養產品千百種,自己覺得合適就好。 這邊除了紀錄我的保養方式外 還會分享一些近期在使用的保養產品 最近買了些霓淨思 Neogence 的東西來用 防曬、A 醇精華都不錯,價格也合理 先來記錄一下我的保養步驟 早上 清水洗臉 維他命C精華 玻尿酸精華、保濕乳液 保濕面霜 (較乾燥的地方) 防曬乳 晚上 洗臉 - 卸妝水、洗面乳,擇一使用 抗痘精華 (有長痘才會用) A 醇 面霜、眼霜 保濕面霜 (較乾燥的地方) 不定期 果酸 上面就是我的保養日常,不算太複雜 再來就是臉部保養產品的部分 我不太會試用各種不同品牌的產品 通常都是通過其他人介紹才會去用 如果覺得不錯,就會一直使用下去 內容不多都是我使用過後 很值得推薦的產品 #cerave保濕 #維c #露得清a醇 #bffect玻尿酸 #bffect 保養產品分享 產品評價、使用感受 品牌:Bffect 名稱: Acno 敏感肌抗痘精華 30ml 質地:凝乳 ⭐⭐⭐⭐⭐ 長痘痘真的很煩 原因、治療方式都不一樣 而且跟作息飲食都有關 我的生活就是少不了致痘的食物 只好盡力從保養方面著手 這款我覺他不錯的地方在於 他可以改善膚況 之前右臉頰同一部位瘋狂長痘 擦完一罐以後,狀況就有明顯改善 之前是全臉用,不會刺激 除非是痘痘有紅腫傷口才會感覺刺刺的 現在就是偶爾長痘時塗在痘痘處 不含酸類,很推薦混合、乾性肌使用

網頁Loading載入效果 Web page loading effect

新增網頁在loading時的動畫效果
Add animation effect to the web page when loading

網頁Loading載入效果

前端如果有大量元素要載入的時候,為了呈現畫面的美觀,通常都會有一個 Loading 的畫面
When the front end has a lot of elements to load, there is usually a loading screen to show the beauty of the interface.

先前加入這個效果本來是要解決 Js 載入網站有延遲,導致跑版的問題,不過修改一個 Class 之後就解決了
Previously, this effect was added to solve the problem of Js loading the website with delay, causing the layout to be messed up, but it was solved after modifying a class.

可是既然已經找到相關的製作方式,何不套用在網站中呢 ~
But since I have found the relevant production method, why not apply it to the website?

另外設定 Timeout 的原因就是在頻繁切換網頁的時候,如果網頁載入沒有延遲,loading 畫面會一閃而過,不太美觀。
Another reason for setting the timeout is that when switching pages frequently, if the website loads without delay, the loading screen will flash by, which is not very beautiful.

此次參考的網頁

程式碼部分
Code part

Head 加入以下 style
Add the following style to Header

<style>
        /* Center the loader */
        #loader {
          position: absolute;
          left: 50%;
          top: 50%;
          z-index: 1;
          width: 150px;
          height: 150px;
          margin: -75px 0 0 -75px;
          border: 16px solid #f3f3f3;
          border-radius: 50%;
          border-top: 16px solid #3498db;
          width: 160px;
          height: 160px;
          -webkit-animation: spin 2s linear infinite;
          animation: spin 2s linear infinite;
        }

        @-webkit-keyframes spin {
          0% { -webkit-transform: rotate(0deg); }
          100% { -webkit-transform: rotate(360deg); }
        }

        @keyframes spin {
          0% { transform: rotate(0deg); }
          100% { transform: rotate(360deg); }
        }

        /* Add animation to "page content" */
        .animate-bottom {
          position: relative;
          -webkit-animation-name: animatebottom;
          -webkit-animation-duration: 1s;
          animation-name: animatebottom;
          animation-duration: 1.5s
        }

        @-webkit-keyframes animatebottom {
          from { bottom:-100px; opacity:0 } 
          to { bottom:0px; opacity:1 }
        }

        @keyframes animatebottom { 
          from{ bottom:-100px; opacity:0 } 
          to{ bottom:0; opacity:1 }
        }

        #myDiv {
          display: none;
        }
</style>


在 body 加入以下項目
Add the following items to the body

<body style="margin:0;"><body>


加入 loading 的 div 區塊
Add a div block for loading

<div id="loader"></div>


用 div 包住內容
Wrap the content with div

<div style="display:none;" id="myDiv" class="animate-bottom"><div>


body 的最後使用此段程式碼
Use this code at the end of the body

<script>
    setTimeout(function () {
        $(document).ready(function () {
            document.getElementById("loader").style.display = "none";
            document.getElementById("myDiv").style.display = "block";
        });
     }, 500);
</script>

 

*英文使用 Bing AI 直接中翻英,測試看看它的功能

#loading效果#網頁loading

 

留言

這個網誌中的熱門文章

Let's Encrypt 建立免費SSL憑證|將SSL憑證匯入IIS啟用https

空氣清淨除濕機開箱文|Panasonic國際牌8公升一級能效除濕機F-Y16EN