feat: bootstrap Nuxt portfolio with Tailwind and daisyUI for now
This commit is contained in:
commit
91b162fb44
15 changed files with 3363 additions and 0 deletions
19
app/plugins/scroll-reveal.client.js
Normal file
19
app/plugins/scroll-reveal.client.js
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
import ScrollReveal from 'scrollreveal';
|
||||
|
||||
export default defineNuxtPlugin((nuxtApp) => {
|
||||
const defaultOptions = {
|
||||
origin: 'bottom',
|
||||
distance: '80px',
|
||||
duration: 1000,
|
||||
delay: 200,
|
||||
easing: 'cubic-bezier(0.5, 0, 0, 1)',
|
||||
reset: true,
|
||||
};
|
||||
|
||||
const sr = ScrollReveal(defaultOptions);
|
||||
|
||||
// You can make it available to the rest of your Nuxt application
|
||||
// by returning it in the `provide` object.
|
||||
// This makes it accessible as `$sr` in your components.
|
||||
nuxtApp.provide('sr', sr);
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue