boo-zi
April 24, 2022, 10:43pm
1
Hello. Fairly new to Bootstrap Studio.
I’m trying to integrate Animation JavaScriot Library, Like Anime.js in Bss and Unfortunately, without Success. I tried to put the code in the Header and in the Costume Html Code But, it doesn’t seem to work.
can anyone give a step by step Manual to do so.
thanks for any help.
Please for sake of god provide more details cause no one will help you if youre saying vaguely, its too “general” description of your problem…
First of all make sure your script in javascript list is ordered properly after anime.js cause if its above anime.js it wont work
boo-zi
April 25, 2022, 8:38am
3
i imported Anime.js into javascript folder, and its order first.
i wrote the code on the header:
div ID is text
not working.
what am i doing wrong?
In design tab right click on Javascript heading and “link external js”
in the URL add “https://cdnjs.cloudflare.com/ajax/libs/animejs/3.2.1/anime.min.js ”
For a test, drag in icon onto the page (for this example use the font awesome 5 star - or anything with a ‘far’ class)
Back to the design tab, create a new javascript file
Add the following to the js file
var elements = document.querySelectorAll(".far");
anime({
targets: elements,
translateX: 270,
});
this should now move the star 270px to the right when you preview in browser
1 Like
Im glad that you’re on the forums, I don’t have nerves for this
2 Likes
I was on a very boring teams meeting, makes the time go faster
1 Like
boo-zi
April 25, 2022, 9:10am
8
it worked. thank you very much.
simple answer to a simple question.