diff options
Diffstat (limited to 'src/components/NoticeComponent.tsx')
-rw-r--r-- | src/components/NoticeComponent.tsx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/components/NoticeComponent.tsx b/src/components/NoticeComponent.tsx index 56a96378..a6dcb768 100644 --- a/src/components/NoticeComponent.tsx +++ b/src/components/NoticeComponent.tsx @@ -19,6 +19,7 @@ export interface NoticeProps { idSuffix?: string; fadeIn?: boolean; + fadeOut?: boolean; startFaded?: boolean; firstColumn?: React.ReactElement[] | React.ReactElement; firstRow?: React.ReactElement; @@ -326,7 +327,7 @@ class NoticeComponent extends React.Component<NoticeProps, NoticeState> { return; } - if (countdownTime == 3) { + if (countdownTime == 3 && this.props.fadeOut) { //start fade out animation const notice = document.getElementById("sponsorSkipNotice" + this.idSuffix); notice?.style.removeProperty("animation"); |