Files
Randify.pro/src/lib/client/animations.ts
T
emil 8f11c5af43 feat: add favorites panel to meal generator, remove redundant Another one button
- Add clickable favorites counter with expandable panel
- Render saved recipes list with remove button
- Remove duplicate 'Another one' button (Generate already covers it)
- Sync favorite button state when removing from panel
2026-05-13 00:25:09 +03:00

11 lines
260 B
TypeScript

export function popElement(el: HTMLElement) {
el.style.transform = "scale(1.18)";
el.style.opacity = "0.7";
requestAnimationFrame(() =>
requestAnimationFrame(() => {
el.style.transform = "scale(1)";
el.style.opacity = "1";
}),
);
}