YouTube: fadeInChatMessage

To fade in Chat Messages (with YouTube Super Fast Chat)

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

Bạn sẽ cần cài đặt một tiện ích mở rộng như Tampermonkey hoặc Violentmonkey để cài đặt kịch bản này.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(Tôi đã có Trình quản lý tập lệnh người dùng, hãy cài đặt nó!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

/* ==UserStyle==
@name           YouTube: fadeInChatMessage
@namespace      github.com/openstyles/stylus
@version        0.1.2
@description    To fade in Chat Messages (with YouTube Super Fast Chat)
@author         CY Fung
@preprocessor   stylus
@var number     from-opacity              "From Opacity"                  [0.3, 0, 1, 0.05]
@var number     to-opacity                "To Opacity"                    [1, 0, 1, 0.05]
@var number     fade-duration             "Fade Duration"                 [350, 10, 900, 10, 'ms']
@var select     timing-fx                 "Timing Fx"                     {
"cubic-bezier(.4,.9,.5,1)": "cubic-bezier(.4,.9,.5,1)",
"linear": "linear",
"ease-in-out": "ease-in-out"
}
==/UserStyle== */

@-moz-document url-prefix("https://www.youtube.com/live_chat") {
    
    
    if 1 {
        $animation = fadeInChatMessage fade-duration timing-fx 0s 1 normal forwards
    }
    
    @keyframes fadeInChatMessage {
        from{
            opacity:from-opacity;
        }
        to{
            opacity:to-opacity;
        }
    }


    .cyt-chat-last-message {

        animation: $animation;
    }
    
    /* Insert code here... */
}