0

Is there an easy way to flash an element with a background color with alpine? So an example would be to transition from tailwind bg-red-500 to bg-transparent over 2 seconds right when the element is loaded. Thank you!

SeaBass
  • 1,584
  • 4
  • 20
  • 46
  • Wha not plain css animation? – Marc Jul 09 '21 at 08:50
  • I just looked into that as well. Someone said it's not possible with tailwind, but it seems like it is with some config and custom classes. – SeaBass Jul 09 '21 at 16:36
  • And you cant add custom css files for your blinking animation? https://stackoverflow.com/a/13955165/5781499 Feel free to adapt it to your needings – Marc Jul 09 '21 at 17:28
  • I wanted to see if I could get it done with tailwind and I could with some config. Well, it's basically custom css at that point. Thanks! :) – SeaBass Jul 09 '21 at 18:05
  • Feel free to answer your own question, so you help other people with the same problem. – Marc Jul 10 '21 at 08:37

0 Answers0