You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@jizai1125 Yeah. I tried the above in pnpm vite vue project. Works perfectly. But don't know why it's not working in my npm vue cli project. Strange. At the project, I used jquery for some reasons. Could it affect the countup anyway?
BTW, Thanks for the immediate reply.
@ktm72 Can you provide a minimal reproduction or upgrade to the latest version and try again? If you have set enableScrollSpy to true, make sure to set the component prop autoplay to false.
Options don't work properly if used enableScrollSpy, scrollSpyDelay, scrollSpyOnce.
Count in template:
<CountUp
:end-val="4073"
:duration="1"
:options="options"
Additional context
import { ref } from "vue";
import CountUp from "vue-countup-v3";
export default {
name: "Counter",
components: {
CountUp,
},
setup() {
const options = ref({
enableScrollSpy: true,
scrollSpyDelay: 100,
scrollSpyOnce: true,
});
return {
options,
};
},
It stopped at 0.
The text was updated successfully, but these errors were encountered: