2
I use a code in jQuery to make an animation to load the page, as I do the same with Vuejs?
(function ($) {
"use strict";
(function ($) {
"use strict";
var uza_window = $(window);
uza_window.on("load", function () {
$("#preloader").fadeOut("1000", function () {
$(this).remove();
});
});
})(jQuery);
})(jQuery);
would that be so? https://br.vuejs.org/v2/guide/transitions.html
– Guto
https://codepen.io/rovalx/pen/aOEXPG
– Pedro Henrique
kind of link
– Pedro Henrique
but wanted to know if there is something native from vuejs to do, I know with js
– Pedro Henrique
If what you want is a Download that initializes with the page and after a certain amount of screen time, there is nothing native in Vue, you will have to implement on your own or use a css framework like Vuetify that already comes with these features like these loading: https://vuetifyjs.com/pt-BR/Components/Progress
– LeAndrade
So I’m going to have to use jquery, apparently, to know the right time to stop
– Pedro Henrique
Dude if you are using Vue do not have the slightest need to use jQuery. There are several ways to do this, one of them is with setTimeout().
– LeAndrade
But the setTimeout will just set a timer, and not the exact loading time, I did with Vue using setTimeout, but only the animation appears when loading the page, and not on the loading
– Pedro Henrique