Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

nhayder's avatar
Level 13

how to combine tailwind css with animate.css using laravel mix

i'm using tailwindcss as my main css framework and i need to add animate.css to add some animation

https://daneden.github.io/animate.css/.

my question is how to combine both framework for my app using laravel mix ????

this is my laravel mix file

	var tailwindcss = require('tailwindcss');

	mix.postCss('resources/assets/admin/css/designer.css', 'public/css', [

	  tailwindcss('./tailwind.js'),
	  
	]);

	mix.js('resources/assets/js/app.js', 'public/js/app.js').version();

Any ideas on how to do this ???

0 likes
3 replies
nhayder's avatar
Level 13

@sinnbeck i know about that package but i'm trying to find a better solution without using packages.

i'm sure somebody has been in the same situation on this forum

Sinnbeck's avatar
Sinnbeck
Best Answer
Level 102

Yeah I do it in a project. I just import animate css in my scss file

Something like

@import '~animate.css';
1 like

Please or to participate in this conversation.