      import { createAnimation } from 'https://cdn.jsdelivr.net/npm/@ionic/core@8/dist/ionic/index.esm.js';
      window.createAnimation = createAnimation;

      const animation = createAnimation()
        .addElement(document.querySelector('#card'))
        .duration(1500)
        .iterations(Infinity)
        .direction('alternate')
        .fromTo('background', 'blue', 'var(--background)');

      document.querySelector('#play').addEventListener('click', () => {
        animation.play();
      });

    