Skip to content

Commit 7b9d978

Browse files
committed
Modcon - Update
1 parent 849ba86 commit 7b9d978

4 files changed

Lines changed: 8 additions & 5 deletions

File tree

dist/modcon.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/modcon.js.map

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pnpm-workspace.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
1+
packages:
2+
- '.'
13
allowBuilds:
24
esbuild: true

src/modcon.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -556,6 +556,7 @@ function initStackingStickyCardsBounce() {
556556
const stickyTop = parseFloat(getComputedStyle(cards[0]).top) || 0;
557557

558558
const rotateValues = (() => {
559+
return 0;
559560
if (tier === 'desktop')
560561
return parseRotateValues(section, 'data-stacking-cards-desktop-rotate');
561562
if (tier === 'tablet') return parseRotateValues(section, 'data-stacking-cards-tablet-rotate');
@@ -966,10 +967,10 @@ function initHeroLogoIntro() {
966967
}
967968

968969
// 4. Hold, then fly logo back to its natural position
969-
tl.to(logoWrap, { x: 0, y: 0, scale: 1, duration: 1.2, ease: 'power3.out' }, '+=0.4');
970+
tl.to(logoWrap, { x: 0, y: 0, scale: 1, duration: 1.2, ease: 'power3.out' }, '+=0.01');
970971

971972
// 5. Reveal everything else after the logo lands
972-
tl.addLabel('reveal');
973+
tl.addLabel('reveal', '-=1');
973974
if (nav) {
974975
tl.to(nav, { yPercent: 0, duration: 0.7, ease: 'power3.out' }, 'reveal');
975976
}

0 commit comments

Comments
 (0)