Hello I am a rookie who just learned javascript.
I have used barba v1 in the project and I imported it directly by writing
Hi @hosxes!
Of course you can import Barba the same way you did before with the v1.
Barba is hosted on the UNPKG CDN, so you should use this kind of script tag in your document:
<script src="https://unpkg.com/@barba/core"></script>
If you are comfortable with webpack stuff, you should import the library as specified in the documentation:
import barba from '@barba/core';
Thanks for your feedback. :wink:
Hi @xavierfoucrier
Thank you for replying to me! What I actually want to ask is how to use @barba/css without npm, because you only wrote the CDN link of @barba/core, which made me mistakenly think that @barba/css can be used after importing that.
Anyway, I realized that I only need to import <script src =" https://unpkg.com/@barba/css "> </ script> to use the new features!! I'm really stupid haha.
Thank you very much again, I have no other questions, and will continue to support barba.js :3
@hosxes perfect!
No problem, glad to help you with that :wink:
Have a nice day :sunglasses: