Skip to content

Commit 170107b

Browse files
authored
Merge pull request #119 from CSSS/dev_tech-fair-2025
Tech Fair 2025 Update 2
2 parents 9ea22f7 + c8661b2 commit 170107b

3 files changed

Lines changed: 38 additions & 4 deletions

File tree

public/static/js/SplitText.min.js

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

public/tech_fair/2025/index.html

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,13 @@
88
<script defer src="main.js"></script>
99
<link rel="icon" type="image/png" href="/static/icons/favicon_colourful.svg" />
1010
<script defer src="/static/js/gsap.min.js"></script>
11+
<script defer src="/static/js/SplitText.min.js"></script>
1112
<script defer src="/static/js/ScrollTrigger.min.js"></script>
1213
<!-- ScrollSmoother requires ScrollTrigger -->
1314
<script defer src="/static/js/ScrollSmoother.min.js"></script>
1415
<title>Tech Fair 2025</title>
1516
</head>
16-
<body>
17+
<body style="display: none">
1718
<header id="header">
1819
<nav>
1920
<a id="home-link" href="https://new.sfucsss.org" target="_blank">
@@ -94,7 +95,7 @@ <h2>What is Tech Fair?</h2>
9495
</div>
9596
<div class="chat-section">
9697
<h2 class="chat section-content right">ChatGPT, summarize this section</h2>
97-
<div class="chat section-content left">
98+
<div class="chat section-content response left">
9899
<ul>
99100
<li>
100101
When: <strong>Wednesday, October 15, 2025</strong> from
@@ -206,7 +207,11 @@ <h2>My company is interested, what else can you tell me?</h2>
206207
<strong>less than 50</strong> employees we offer a discounted price of
207208
<strong>$500</strong>. <br /><br />
208209
If you'd like to know more, check out our
209-
<a href="" target="_blank">sponsorship package</a>. <br /><br />
210+
<a
211+
href="https://drive.google.com/file/d/1ssUgmswUAd0661qMs6OpoA1GyJDQipmt/view"
212+
target="_blank"
213+
>sponsorship package</a
214+
>. <br /><br />
210215
Don't miss this chance to show off who you are!
211216
</p>
212217
</div>

public/tech_fair/2025/main.js

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,10 +70,28 @@ function setScrolledEffect() {
7070
});
7171
}
7272

73+
function setIncrementalText() {
74+
let split = SplitText.create('.response', {
75+
type: 'words'
76+
});
77+
78+
gsap.from(split.words, {
79+
scrollTrigger: {
80+
trigger: '.response',
81+
start: 'top bottom',
82+
once: true
83+
},
84+
autoAlpha: 0,
85+
stagger: 0.05
86+
});
87+
}
88+
7389
document.addEventListener('DOMContentLoaded', () => {
74-
gsap.registerPlugin(ScrollTrigger, ScrollSmoother);
90+
gsap.registerPlugin(ScrollTrigger, SplitText, ScrollSmoother);
7591
photos = document.querySelectorAll('.gallery-content');
92+
document.body.style.display = 'block';
7693

7794
setPopInEffect();
7895
setScrolledEffect();
96+
setIncrementalText();
7997
});

0 commit comments

Comments
 (0)