![](/img/trans.png)
[英]How can I make text change color after button click and change back the color after a couple of seconds of no clicking?
[英]How can i change font color for a snapchat login button after click on it?
我使用來自snapchat kit的官方登錄按鈕示例
單擊登錄按鈕后,將刪除帶有文本的 span 元素。
即使在單擊登錄按鈕后,我應該在我的代碼中更改什么以查看跨度文本?
我的代碼示例在 這里
我已經用::before 元素解決了這個問題
.snapchat-login-button button {
animation: none;
&::before {
content: "Button text is here"
}
}
.snapchat-login-button span {
padding-left: 0;
display: none;
}
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.