💡 #svelte, #svelte-boilerplate, #smelte, #gsap3, #webpack, #tailwindcss
💡 GSAP 3 Docs
Let's do it.
- Initial project using svelte-boilerplate template
- Installing gsap
>_ yarn add gsap
- Update
src/App/index.svelte
<script>
import Layout from '@Components/Layout';
import { gsap } from "gsap";
</script>
<style src="./style.scss">
</style>
<Layout>
<div class="container xl mx-auto">
<div class="flex h-screen justify-center">
<div class="mx-auto p-3"
use:gsap.from={ { duration: 3, opacity: 0, scale: 0.9 } }
>
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse
cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non
proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
</div>
</div>
</div>
</Layout>
Let's enjoyed
>_ yarn start:dev
Top comments (0)