Mark the same parts on both sides
A part morphs only when it has the same data-cdl-part in the card and in the dialog. Six roles are styled for it: face, media, tag, title, pieces and meta. Anything without a role simply fades in with the dialog.
Adding extras
It ships with an image, a title and one line. Add data-cdl-part="tag" (.cdl_tag) or data-cdl-part="meta" (.cdl_meta) to both sides and they morph too. Inside the dialog, .cdl_note, .cdl_list-wrap and a .cdl_foot of .cdl_btns are styled and fade in with it; .cdl_cta is a call to action on the card. In React, pass tag, meta, note, listTitle and items on each look; the buttons go in the JSX.
Keep text parts short
Text parts cross-fade between their two sizes rather than stretching, so a title that wraps differently in the card and the dialog still looks clean. Short titles and one-line meta read best.
Pick a picture that crops well both ways
The card image is wide and short, the dialog image taller. Both are object-fit: cover with the focus 12% from the top, so put the subject near the top of the picture.
Stay near the default time
0.4s feels like the card is lifting into place. Above 0.8s the overshoot starts to feel slow; below 0.25s the cross-fades get hard to follow.