Update docs for animate scroll
parent
095a203cd8
commit
08bd3118ea
|
@ -22,12 +22,24 @@
|
||||||
<span class="text-3xl font-bold">fade-right</span>
|
<span class="text-3xl font-bold">fade-right</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="h-30rem"></div>
|
<div class="h-30rem"></div>
|
||||||
<div v-animateonscroll="{ enterClass: 'flipleft', leaveClass: 'flipright' }" class="flex bg-primary justify-content-center align-items-center h-20rem w-20rem border-round shadow-2 animation-duration-1000 animation-ease-in-out">
|
<div v-animateonscroll="{ enterClass: 'zoomin', leaveClass: 'fadeout' }" class="flex bg-primary justify-content-center align-items-center h-20rem w-20rem border-round shadow-2 animation-duration-1000">
|
||||||
<span class="text-3xl font-bold">flip</span>
|
<span class="text-3xl font-bold">zoom</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="h-30rem"></div>
|
<div class="h-30rem"></div>
|
||||||
<div v-animateonscroll.once="{ enterClass: 'scalein' }" class="flex bg-primary justify-content-center align-items-center h-20rem w-20rem border-round shadow-2 animation-duration-1000 animation-ease-in-out">
|
<div v-animateonscroll="{ enterClass: 'zoomindown', leaveClass: 'fadeout' }" class="flex bg-primary justify-content-center align-items-center h-20rem w-20rem border-round shadow-2 animation-duration-1000">
|
||||||
<span class="text-3xl font-bold">scale (once)</span>
|
<span class="text-3xl font-bold">zoom-down</span>
|
||||||
|
</div>
|
||||||
|
<div class="h-30rem"></div>
|
||||||
|
<div v-animateonscroll="{ enterClass: 'flipleft', leaveClass: 'fadeout' }" class="flex bg-primary justify-content-center align-items-center h-20rem w-20rem border-round shadow-2 animation-duration-1000 animation-ease-in-out">
|
||||||
|
<span class="text-3xl font-bold">flip-left</span>
|
||||||
|
</div>
|
||||||
|
<div class="h-30rem"></div>
|
||||||
|
<div v-animateonscroll="{ enterClass: 'flipup', leaveClass: 'fadeout' }" class="flex bg-primary justify-content-center align-items-center h-20rem w-20rem border-round shadow-2 animation-duration-1000 animation-ease-in-out">
|
||||||
|
<span class="text-3xl font-bold">flip-y</span>
|
||||||
|
</div>
|
||||||
|
<div class="h-30rem"></div>
|
||||||
|
<div v-animateonscroll="{ enterClass: 'scalein', leaveClass: 'fadeout' }" class="flex bg-primary justify-content-center align-items-center h-20rem w-20rem border-round shadow-2 animation-duration-1000 animation-ease-in-out">
|
||||||
|
<span class="text-3xl font-bold">scalein</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<DocSectionCode :code="code" />
|
<DocSectionCode :code="code" />
|
||||||
|
@ -52,18 +64,37 @@ export default {
|
||||||
<span class="text-3xl font-bold">fade-right</span>
|
<span class="text-3xl font-bold">fade-right</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="h-30rem"></div>
|
<div class="h-30rem"></div>
|
||||||
<div v-animateonscroll="{ enterClass: 'flipleft', leaveClass: 'flipright' }" class="flex bg-primary justify-content-center align-items-center h-20rem w-20rem border-round shadow-2 animation-duration-1000 animation-ease-in-out">
|
<div v-animateonscroll="{ enterClass: 'zoomin', leaveClass: 'fadeout' }" class="flex bg-primary justify-content-center align-items-center h-20rem w-20rem border-round shadow-2 animation-duration-1000">
|
||||||
<span class="text-3xl font-bold">flip</span>
|
<span class="text-3xl font-bold">zoom</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="h-30rem"></div>
|
<div class="h-30rem"></div>
|
||||||
<div v-animateonscroll.once="{ enterClass: 'scalein' }" class="flex bg-primary justify-content-center align-items-center h-20rem w-20rem border-round shadow-2 animation-duration-1000 animation-ease-in-out">
|
<div v-animateonscroll="{ enterClass: 'zoomindown', leaveClass: 'fadeout' }" class="flex bg-primary justify-content-center align-items-center h-20rem w-20rem border-round shadow-2 animation-duration-1000">
|
||||||
<span class="text-3xl font-bold">scale (once)</span>
|
<span class="text-3xl font-bold">zoom-down</span>
|
||||||
|
</div>
|
||||||
|
<div class="h-30rem"></div>
|
||||||
|
<div v-animateonscroll="{ enterClass: 'flipleft', leaveClass: 'fadeout' }" class="flex bg-primary justify-content-center align-items-center h-20rem w-20rem border-round shadow-2 animation-duration-1000 animation-ease-in-out">
|
||||||
|
<span class="text-3xl font-bold">flip-left</span>
|
||||||
|
</div>
|
||||||
|
<div class="h-30rem"></div>
|
||||||
|
<div v-animateonscroll="{ enterClass: 'flipup', leaveClass: 'fadeout' }" class="flex bg-primary justify-content-center align-items-center h-20rem w-20rem border-round shadow-2 animation-duration-1000 animation-ease-in-out">
|
||||||
|
<span class="text-3xl font-bold">flip-y</span>
|
||||||
|
</div>
|
||||||
|
<div class="h-30rem"></div>
|
||||||
|
<div v-animateonscroll="{ enterClass: 'scalein', leaveClass: 'fadeout' }" class="flex bg-primary justify-content-center align-items-center h-20rem w-20rem border-round shadow-2 animation-duration-1000 animation-ease-in-out">
|
||||||
|
<span class="text-3xl font-bold">scalein</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
`,
|
`,
|
||||||
options: `
|
options: `
|
||||||
<template>
|
<template>
|
||||||
<div class="card flex flex-column align-items-center">
|
<div class="card flex flex-column align-items-center">
|
||||||
|
<div class="flex flex-column align-items-center gap-2">
|
||||||
|
<span class="text-xl font-medium">Scroll Down</span>
|
||||||
|
<span class="slidedown-icon h-2rem w-2rem bg-primary border-circle inline-flex align-items-center justify-content-center">
|
||||||
|
<i class="pi pi-arrow-down" />
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
<div class="h-30rem"></div>
|
||||||
<div v-animateonscroll="{ enterClass: 'fadein', leaveClass: 'fadeout' }" class="flex bg-primary justify-content-center align-items-center h-20rem w-20rem border-round shadow-2 animation-duration-1000">
|
<div v-animateonscroll="{ enterClass: 'fadein', leaveClass: 'fadeout' }" class="flex bg-primary justify-content-center align-items-center h-20rem w-20rem border-round shadow-2 animation-duration-1000">
|
||||||
<span class="text-3xl font-bold">fade-in</span>
|
<span class="text-3xl font-bold">fade-in</span>
|
||||||
</div>
|
</div>
|
||||||
|
@ -76,12 +107,24 @@ export default {
|
||||||
<span class="text-3xl font-bold">fade-right</span>
|
<span class="text-3xl font-bold">fade-right</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="h-30rem"></div>
|
<div class="h-30rem"></div>
|
||||||
<div v-animateonscroll="{ enterClass: 'flipleft', leaveClass: 'flipright' }" class="flex bg-primary justify-content-center align-items-center h-20rem w-20rem border-round shadow-2 animation-duration-1000 animation-ease-in-out">
|
<div v-animateonscroll="{ enterClass: 'zoomin', leaveClass: 'fadeout' }" class="flex bg-primary justify-content-center align-items-center h-20rem w-20rem border-round shadow-2 animation-duration-1000">
|
||||||
<span class="text-3xl font-bold">flip</span>
|
<span class="text-3xl font-bold">zoom</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="h-30rem"></div>
|
<div class="h-30rem"></div>
|
||||||
<div v-animateonscroll.once="{ enterClass: 'scalein' }" class="flex bg-primary justify-content-center align-items-center h-20rem w-20rem border-round shadow-2 animation-duration-1000 animation-ease-in-out">
|
<div v-animateonscroll="{ enterClass: 'zoomindown', leaveClass: 'fadeout' }" class="flex bg-primary justify-content-center align-items-center h-20rem w-20rem border-round shadow-2 animation-duration-1000">
|
||||||
<span class="text-3xl font-bold">scale (once)</span>
|
<span class="text-3xl font-bold">zoom-down</span>
|
||||||
|
</div>
|
||||||
|
<div class="h-30rem"></div>
|
||||||
|
<div v-animateonscroll="{ enterClass: 'flipleft', leaveClass: 'fadeout' }" class="flex bg-primary justify-content-center align-items-center h-20rem w-20rem border-round shadow-2 animation-duration-1000 animation-ease-in-out">
|
||||||
|
<span class="text-3xl font-bold">flip-left</span>
|
||||||
|
</div>
|
||||||
|
<div class="h-30rem"></div>
|
||||||
|
<div v-animateonscroll="{ enterClass: 'flipup', leaveClass: 'fadeout' }" class="flex bg-primary justify-content-center align-items-center h-20rem w-20rem border-round shadow-2 animation-duration-1000 animation-ease-in-out">
|
||||||
|
<span class="text-3xl font-bold">flip-y</span>
|
||||||
|
</div>
|
||||||
|
<div class="h-30rem"></div>
|
||||||
|
<div v-animateonscroll="{ enterClass: 'scalein', leaveClass: 'fadeout' }" class="flex bg-primary justify-content-center align-items-center h-20rem w-20rem border-round shadow-2 animation-duration-1000 animation-ease-in-out">
|
||||||
|
<span class="text-3xl font-bold">scalein</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
@ -89,6 +132,13 @@ export default {
|
||||||
composition: `
|
composition: `
|
||||||
<template>
|
<template>
|
||||||
<div class="card flex flex-column align-items-center">
|
<div class="card flex flex-column align-items-center">
|
||||||
|
<div class="flex flex-column align-items-center gap-2">
|
||||||
|
<span class="text-xl font-medium">Scroll Down</span>
|
||||||
|
<span class="slidedown-icon h-2rem w-2rem bg-primary border-circle inline-flex align-items-center justify-content-center">
|
||||||
|
<i class="pi pi-arrow-down" />
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
<div class="h-30rem"></div>
|
||||||
<div v-animateonscroll="{ enterClass: 'fadein', leaveClass: 'fadeout' }" class="flex bg-primary justify-content-center align-items-center h-20rem w-20rem border-round shadow-2 animation-duration-1000">
|
<div v-animateonscroll="{ enterClass: 'fadein', leaveClass: 'fadeout' }" class="flex bg-primary justify-content-center align-items-center h-20rem w-20rem border-round shadow-2 animation-duration-1000">
|
||||||
<span class="text-3xl font-bold">fade-in</span>
|
<span class="text-3xl font-bold">fade-in</span>
|
||||||
</div>
|
</div>
|
||||||
|
@ -101,12 +151,24 @@ export default {
|
||||||
<span class="text-3xl font-bold">fade-right</span>
|
<span class="text-3xl font-bold">fade-right</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="h-30rem"></div>
|
<div class="h-30rem"></div>
|
||||||
<div v-animateonscroll="{ enterClass: 'flipleft', leaveClass: 'flipright' }" class="flex bg-primary justify-content-center align-items-center h-20rem w-20rem border-round shadow-2 animation-duration-1000 animation-ease-in-out">
|
<div v-animateonscroll="{ enterClass: 'zoomin', leaveClass: 'fadeout' }" class="flex bg-primary justify-content-center align-items-center h-20rem w-20rem border-round shadow-2 animation-duration-1000">
|
||||||
<span class="text-3xl font-bold">flip</span>
|
<span class="text-3xl font-bold">zoom</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="h-30rem"></div>
|
<div class="h-30rem"></div>
|
||||||
<div v-animateonscroll.once="{ enterClass: 'scalein' }" class="flex bg-primary justify-content-center align-items-center h-20rem w-20rem border-round shadow-2 animation-duration-1000 animation-ease-in-out">
|
<div v-animateonscroll="{ enterClass: 'zoomindown', leaveClass: 'fadeout' }" class="flex bg-primary justify-content-center align-items-center h-20rem w-20rem border-round shadow-2 animation-duration-1000">
|
||||||
<span class="text-3xl font-bold">scale (once)</span>
|
<span class="text-3xl font-bold">zoom-down</span>
|
||||||
|
</div>
|
||||||
|
<div class="h-30rem"></div>
|
||||||
|
<div v-animateonscroll="{ enterClass: 'flipleft', leaveClass: 'fadeout' }" class="flex bg-primary justify-content-center align-items-center h-20rem w-20rem border-round shadow-2 animation-duration-1000 animation-ease-in-out">
|
||||||
|
<span class="text-3xl font-bold">flip-left</span>
|
||||||
|
</div>
|
||||||
|
<div class="h-30rem"></div>
|
||||||
|
<div v-animateonscroll="{ enterClass: 'flipup', leaveClass: 'fadeout' }" class="flex bg-primary justify-content-center align-items-center h-20rem w-20rem border-round shadow-2 animation-duration-1000 animation-ease-in-out">
|
||||||
|
<span class="text-3xl font-bold">flip-y</span>
|
||||||
|
</div>
|
||||||
|
<div class="h-30rem"></div>
|
||||||
|
<div v-animateonscroll="{ enterClass: 'scalein', leaveClass: 'fadeout' }" class="flex bg-primary justify-content-center align-items-center h-20rem w-20rem border-round shadow-2 animation-duration-1000 animation-ease-in-out">
|
||||||
|
<span class="text-3xl font-bold">scalein</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
Loading…
Reference in New Issue