Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(Poe): add animation when component is visible #132

Merged
merged 1 commit into from
May 12, 2024

Conversation

nexmoe
Copy link
Owner

@nexmoe nexmoe commented May 12, 2024

feat(deps): install @vueuse/nuxt package

feat(nuxt): add @vueuse/nuxt module to nuxt config

chore(deps): update pnpm.lock file with @vueuse/nuxt package

The changes made in this commit are:

  1. Added a new @vueuse/nuxt package to the project dependencies.
  2. Installed the @vueuse/nuxt module in the nuxt.config.ts file.
  3. Updated the pnpm-lock.yaml file with the new @vueuse/nuxt package and its dependencies.
  4. In the components/custom/Poe.vue file, added a new ref elePoe to the root element and used the useElementVisibility hook from @vueuse/core to detect when the component becomes visible.
  5. Added a new class animate that is applied to the component when it becomes visible, which triggers the animation on the .major and .poe div elements.
  6. Paused the animation initially, and started it when the component becomes visible.

These changes were made to improve the user experience by adding an animation effect to the Poe component when it comes into view, making the content more engaging and visually appealing.

feat(deps): install @vueuse/nuxt package

feat(nuxt): add @vueuse/nuxt module to nuxt config

chore(deps): update pnpm.lock file with @vueuse/nuxt package

The changes made in this commit are:

1. Added a new `@vueuse/nuxt` package to the project dependencies.
2. Installed the `@vueuse/nuxt` module in the `nuxt.config.ts` file.
3. Updated the `pnpm-lock.yaml` file with the new `@vueuse/nuxt` package and its dependencies.
4. In the `components/custom/Poe.vue` file, added a new ref `elePoe` to the root element and used the `useElementVisibility` hook from `@vueuse/core` to detect when the component becomes visible.
5. Added a new class `animate` that is applied to the component when it becomes visible, which triggers the animation on the `.major` and `.poe div` elements.
6. Paused the animation initially, and started it when the component becomes visible.

These changes were made to improve the user experience by adding an animation effect to the Poe component when it comes into view, making the content more engaging and visually appealing.
Copy link

vercel bot commented May 12, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
roam-space ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 12, 2024 10:46am

@nexmoe nexmoe merged commit e25760c into main May 12, 2024
3 checks passed
@nexmoe nexmoe deleted the poe-vue-animation-pause-and-play branch May 12, 2024 10:57
@nexmoe nexmoe mentioned this pull request May 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant