🎨 update style

This commit is contained in:
Tykayn 2023-07-09 18:27:30 +02:00 committed by tykayn
parent 8e321a8d8e
commit c294ed83d4
4 changed files with 21 additions and 12 deletions

File diff suppressed because one or more lines are too long

View File

@ -68,7 +68,7 @@
<section id="open"> <section id="open">
<div id="open-handle"></div> <div id="open-handle"></div>
<div class="text"> <div class="text">
<img src="/assets/img/unlock.png" alt="Open Sesame" id="unlock"> <!-- <img src="/assets/img/unlock.png" alt="Open Sesame" id="unlock">-->
<img src="/assets/img/unlock_white.png" alt="Open Sesame" id="unlock_white"> <img src="/assets/img/unlock_white.png" alt="Open Sesame" id="unlock_white">
</div> </div>
</section> </section>

View File

@ -38,7 +38,7 @@ function animateCard (id, side) {
// side: 1, // side: 1,
scrollTrigger: { scrollTrigger: {
trigger: '#content-' + id + ' .flip-handle', trigger: '#content-' + id + ' .flip-handle',
start: 'top 80%', start: 'bottom 80%',
scrub: 1, scrub: 1,
markers: development_debug, markers: development_debug,
} }
@ -85,15 +85,15 @@ if (enable_animations) {
gsap.fromTo('#unlock, #unlock_white', { gsap.fromTo('#unlock, #unlock_white', {
opacity: 0.1, opacity: 0.1,
// scale: 1,
}, },
{ {
opacity: 1, opacity: 1,
// scale: 1.25, scale: 1.25,
top: '-=150',
scrollTrigger: { scrollTrigger: {
trigger: '#unlock_white', trigger: '#unlock_white',
delay: 1, delay: 1,
scrub: 2, scrub: 1,
start: '+50% 80%' start: '+50% 80%'
} }
}) })
@ -127,6 +127,14 @@ if (enable_animations) {
} }
}) })
gsap.to('#welcome h2', {
top: -100,
scrollTrigger: {
trigger: '#welcome',
scrub: 1,
markers: development_debug,
}
})
gsap.to('#phone-watches-1', gsap.to('#phone-watches-1',
{ {
left: 500, left: 500,
@ -229,7 +237,6 @@ if (enable_animations) {
{ {
scale: 1.1, scale: 1.1,
left: 0, left: 0,
ease: 'linear',
scrollTrigger: { scrollTrigger: {
trigger: '#content_all .columns', trigger: '#content_all .columns',
scrub: 1, scrub: 1,
@ -239,10 +246,10 @@ if (enable_animations) {
gsap.fromTo('#unlock', gsap.fromTo('#unlock',
{ {
marginTop: "0", marginTop: '0',
}, },
{ {
marginTop: "-4px", top: -4,
ease: 'spline', ease: 'spline',
scrollTrigger: { scrollTrigger: {
trigger: '#open-handle', trigger: '#open-handle',
@ -253,13 +260,15 @@ if (enable_animations) {
gsap.fromTo('#unlock_white', gsap.fromTo('#unlock_white',
{ {
opacity: 0.5, opacity: 0.5,
scale: 0.5,
top: 200,
}, },
{ {
opacity: 1, opacity: 1,
ease: 'spline', scale: 1,
top: -200,
scrollTrigger: { scrollTrigger: {
trigger: '#open-handle', trigger: '#open-handle',
markers: development_debug, markers: development_debug,
} }
}) })

View File

@ -192,7 +192,7 @@ responsive land custom
} }
.computer-block { .computer-block {
margin-top: -11rem; margin-top: -85px;
width: 97vw; width: 97vw;
} }