shadcn.io is not affiliated with official shadcn/ui
Animated Reveal Awards Block for React
Five results kept under drawn seals: a Reveal button per row and a Reveal all toggle wipe each band away, with the result text always in the page.
Installation
Overview
An envelope reveal for React with Base UI. A centred header gives the totals ("3 wins, 1 highly commended, 1 runner-up"). Below, five categories sit as rows of two cells on shared hairlines: the category with its own Reveal button, and a result cell covered by a drawn sealed band. Reveal wipes the band away toward the end of the line with a clip-path transition; under reduced motion it goes at once. A Reveal all toggle opens or closes every row and a polite line counts them. A placing is told by its word and its chip: solid, outlined or dashed. The programme and the results are made up for the example, and nothing is sent anywhere.
FAQ
How do I change the results?
Edit RESULTS: each has a category, a placing (Winner, Highly commended or Runner-up) and a citation. The header's totals are counted from the list.
Is the result hidden from screen readers?
No. The result's words are always in the page, and only the drawn band covering them is hidden from assistive technology. The seal is a picture, so a screen reader user hears every result.
What about reduced motion?
With reduced motion the band disappears at once with no wipe. Nothing moves by itself, only after you press a button.
How does Reveal all work?
It is a toggle button: pressed means every row is open. Pressing it opens all five, and pressing it again covers them. Opening each row by hand also presses it once the fifth opens.
Related
- Pro
Vote Results Bars Awards
Rankings and scoresHorizontal progress bars for six nominees sorted by votes, with a segmented control that swaps votes for share, a ringed winner row, a derived total and a fixed certification date.
- 213Pro
Three Step Podium Awards
Rankings and scoresA podium of three steps in the order 2, 1, 3, their heights in proportion to rank, a drawn medal on each and the award, programme and year above it.
- Pro
Ceremony Run Of Show Awards
TimelinesA run of show for an awards night: an ordered list of the evening with its times, Lanternhall's two award moments in heavier type, and at the start a drawn stage and a description list of the facts.
- Pro
Medallion Flip Awards
Badges and sealsFive drawn coin medallions that a Front and Back toggle turns over together, a front emblem and a back year, with each side's text kept in the page.
- Pro
Press to Flip Award Cards
Reveal and browseSix award cards in a hairline grid that are each a button flipping on press or Enter, from a drawn mark and the award to the entries it was selected from and its judging criteria.
- Pro
Music Nominations Awards
Themed formatsA ballot sheet on a paper-like panel: four categories, each with a nominee list and a box, the winner's box checked and labelled Winner.