prerender form
This commit is contained in:
parent
2a239d7aab
commit
d7043dbe88
2 changed files with 7 additions and 8 deletions
|
|
@ -5,11 +5,12 @@
|
|||
import SplitText from 'gsap/dist/SplitText';
|
||||
import ScrollTrigger from 'gsap/dist/ScrollTrigger';
|
||||
|
||||
export const prerender = true
|
||||
let canvasTexts: Array<HTMLElement> = [];
|
||||
|
||||
onMount( () => {
|
||||
|
||||
gsap.registerPlugin( SplitText );
|
||||
gsap.registerPlugin( SplitText, ScrollTrigger );
|
||||
|
||||
|
||||
let split = new SplitText('.toCanvas', { type: 'lines', linesClass: 'lineChildren' });
|
||||
|
|
@ -71,12 +72,7 @@
|
|||
</script>
|
||||
|
||||
<div class="formwrapper">
|
||||
<form
|
||||
name="contact"
|
||||
action="/success"
|
||||
method="POST"
|
||||
data-netlify="true"
|
||||
>
|
||||
<form name="contact" action="/success" method="POST" data-netlify="true" >
|
||||
<section class="contact">
|
||||
<h1 class="toCanvas">Don't be a stranger. Let's get acquainted.</h1>
|
||||
<div class="alternatives">
|
||||
|
|
|
|||
|
|
@ -30,7 +30,10 @@ const config = {
|
|||
// instead of creating a single one for the entire app.
|
||||
// if `edge` is true, this option cannot be used
|
||||
split: false
|
||||
})
|
||||
}),
|
||||
// prerender: {
|
||||
// force: true
|
||||
// }
|
||||
},
|
||||
extensions: ['.svelte', '.md']
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue