လုပ်နည်း - တောက်ပသောစာသား
CSS ဖြင့် တောက်ပသော စာသားဖန်တီးနည်းကို လေ့လာပါ။
တောက်ပသောစာသားဖန်တီးနည်း
text-shadow
နီယွန်အလင်းအကျိုးသက်ရောက်မှုကိုဖန်တီးရန် ပိုင်ဆိုင်မှုကို အသုံးပြု ပါ၊ ထို့နောက် ထပ်ခါတလဲလဲတောက်ပသောအကျိုးသက်ရောက်မှုကိုထည့်ရန် animation
နှင့် တွဲ သုံးပါ-keyframes
ဥပမာ
.glow {
font-size: 80px;
color: #fff;
text-align: center;
-webkit-animation: glow 1s ease-in-out infinite
alternate;
-moz-animation: glow 1s ease-in-out infinite alternate;
animation: glow 1s ease-in-out infinite alternate;
}
@-webkit-keyframes glow {
from {
text-shadow: 0 0 10px #fff, 0 0 20px #fff, 0 0 30px #e60073, 0 0 40px #e60073,
0 0 50px #e60073, 0 0 60px #e60073, 0 0 70px #e60073;
}
to
{
text-shadow: 0 0 20px #fff, 0 0 30px #ff4da6, 0 0 40px
#ff4da6, 0 0 50px #ff4da6, 0 0 60px #ff4da6, 0 0 70px #ff4da6, 0 0 80px
#ff4da6;
}
}