File tree Expand file tree Collapse file tree
scripts/section-transitions Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- <section id =" contact" class =" mt -24 px-10 pb-16 sm:px-20 lg:mt -36 lg:pb-24 2xl:px-32" >
1+ <section id =" contact" class =" my -24 px-10 sm:px-20 lg:my -36 2xl:px-32" >
22 <h1 class =" group mb-4 w-fit text-4xl font-medium sm:mb-6 sm:text-5xl xl:mb-10 xl:text-7xl" >
33 <span class =" contact-line-word inline-block opacity-0 motion-reduce:animate-none motion-reduce:opacity-100"
44 >Contact</span
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ export function initTransition() {
2626 if ( percentage >= PERCENTAGE_TRIGGER ) {
2727 show ( )
2828 } else {
29- const opacity = 1 - ( PERCENTAGE_TRIGGER - percentage ) / 0.25
29+ const opacity = 1 - ( PERCENTAGE_TRIGGER - percentage ) / 0.2
3030 projectsSection . style . opacity = `${ opacity } `
3131 if ( opacity <= 0 ) {
3232 hide ( )
You can’t perform that action at this time.
0 commit comments