//animer le texte d'intro
let title = new SplitType("#welcome h2", {types: 'words, chars'})
let text = new SplitType("#welcome p", {types: 'words, chars'})
- gsap.from(title.words, {
- opacity: 0, y: 20, duration: 1, stagger: 0.05
+ gsap.timeline({delay: .4})
+ .to("#title", {
+ y: 0
})
- gsap.to(text.words, {
- opacity: 1, y: 0, duration: 1, ease: "power1.inOut", stagger: {
+ .to("#start", {
+ y: 0
+ },.2)
+ .from(title.words, {
+ opacity: 0, y: 20, duration: .2, stagger: 0.05
+ },.5)
+ .to(text.words, {
+ opacity: 1, y: 0, duration: .8, ease: "power4.easeInOut", stagger: {
amount: 0.2
}
- })
+ },.7)
},
resize: function (ww, hh) {
height: 80px
+flex-config(space-between,false,row,center)
margin-top: -24px
+ transform: translateY(-100%)
#logo
height: 40px
left: 50%
bottom: 24px
transform: translateX(-50%)
+ &#start
+ transform: translate(-50%, calc(100% + 24px))
.footer-question
transform: translateY(100%)