လုပ်နည်း - ခလုတ်များ တင်ပေးခြင်း။
CSS ဖြင့် loading ခလုတ်များ ဖန်တီးနည်းကို လေ့လာပါ။
Loading Buttons ကို ဘယ်လိုပုံစံလုပ်မလဲ။
အဆင့် 1) HTML ကိုထည့်ပါ
Font Awesome ကဲ့သို့သော အိုင်ကွန်ဒစ်ဂျစ်တိုက်ကို ပေါင်းထည့်ကာ HTML ခလုတ်များသို့ အိုင်ကွန်များကို ပေါင်းထည့်ပါ-
ဥပမာ
<!-- Add icon library -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<!-- Add font awesome icons to buttons (note that the fa-spin class
rotates the icon) -->
<button class="buttonload">
<i class="fa fa-spinner fa-spin"></i>Loading
</button>
<button class="buttonload">
<i class="fa fa-circle-o-notch
fa-spin"></i>Loading
</button>
<button class="buttonload">
<i
class="fa fa-refresh fa-spin"></i>Loading
</button>
အဆင့် 2) CSS ကိုထည့်ပါ
ဥပမာ
/* Style buttons */
.buttonload {
background-color: #04AA6D; /* Green background */
border: none; /* Remove borders */
color: white; /*
White text */
padding: 12px 16px; /* Some padding */
font-size: 16px /* Set a font size */
}
အကြံပြုချက်- အိုင်ကွန်များအကြောင်း ပိုမိုလေ့လာရန် ကျွန်ုပ်တို့၏ Icons Tutorial သို့ သွားပါ ။
အကြံပြုချက်- ကျွန်ုပ်တို့၏ လုပ်နည်း - CSS Loader သို့ သွား၍ CSS ဖြင့် loader (အိုင်ကွန်ဒစ်ဂျစ်တိုက်မပါဘဲ) နှင့် loader ဖန်တီးနည်းကိုလေ့လာရန်။
ခလုတ်များကိုစတိုင်လ်ပုံစံလုပ်နည်းအကြောင်းပိုမိုလေ့လာရန် ကျွန်ုပ်တို့၏ CSS Buttons Tutorial သို့ သွား ပါ။