CityOfDetroit / COD-Design-System

Design system for the City of Detroit.
https://cityofdetroit.github.io/COD-Design-System/
MIT License
1 stars 3 forks source link

Support attribute-based animations on article card #249

Closed maxatdetroit closed 4 months ago

maxatdetroit commented 4 months ago

Changes Proposed

Update the article card component to have a show boolean attribute on the element. If active, the article card text container is displayed in full, otherwise, only the title is displayed (the default state). Also, use the same transition as :hover.

This will be used in https://github.com/CityOfDetroit/detroitmi/pull/1599 to create an on-scroll animation effect.

Testing

https://github.com/user-attachments/assets/8c4845ae-4ff5-4478-870c-d71c6bbad17c