File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -75,6 +75,29 @@ body {
7575 color : # fff ;
7676}
7777
78+ /* Rotating announcement bar — messages stack in the same spot and cross-fade */
79+ .announcement-bar .rotating .container {
80+ display : grid;
81+ }
82+
83+ .announcement-bar .rotating a {
84+ grid-area : 1 / 1 ;
85+ opacity : 0 ;
86+ pointer-events : none;
87+ transition : opacity 0.6s ease;
88+ }
89+
90+ .announcement-bar .rotating a .announcement-active {
91+ opacity : 1 ;
92+ pointer-events : auto;
93+ }
94+
95+ @media (prefers-reduced-motion : reduce) {
96+ .announcement-bar .rotating a {
97+ transition : none;
98+ }
99+ }
100+
78101.site-header {
79102 position : fixed;
80103 top : 2.25rem ;
Original file line number Diff line number Diff line change 2828</ head >
2929< body >
3030
31- < div class ="announcement-bar ">
31+ < div class ="announcement-bar rotating ">
3232 < div class ="container ">
33- < a href ="/reports/gartner-bi-analysis-2026/ ">
33+ < a href ="/reports/gartner-bi-analysis-2026/ " class =" announcement-active " >
3434 < strong > New free report</ strong > — Gartner's 2026 BI rankings, decoded. Read it now →
3535 </ a >
36+ < a href ="https://superdatablog.substack.com " target ="_blank " rel ="noopener ">
37+ < strong > AI in BI</ strong > — the new book from Wiley is coming soon. Subscribe for updates →
38+ </ a >
3639 </ div >
3740 </ div >
3841
Original file line number Diff line number Diff line change @@ -14,3 +14,14 @@ navLinks.querySelectorAll('a').forEach(link => {
1414 navLinks . classList . remove ( 'active' ) ;
1515 } ) ;
1616} ) ;
17+
18+ // Rotating announcement bar
19+ const announcements = document . querySelectorAll ( '.announcement-bar.rotating a' ) ;
20+ if ( announcements . length > 1 ) {
21+ let current = 0 ;
22+ setInterval ( ( ) => {
23+ announcements [ current ] . classList . remove ( 'announcement-active' ) ;
24+ current = ( current + 1 ) % announcements . length ;
25+ announcements [ current ] . classList . add ( 'announcement-active' ) ;
26+ } , 6000 ) ;
27+ }
You can’t perform that action at this time.
0 commit comments