Skip to content

Commit 9f55889

Browse files
committed
about section fix again
1 parent 0f8b233 commit 9f55889

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

js/index.js

-10
Original file line numberDiff line numberDiff line change
@@ -38,18 +38,8 @@ function scrollFunction() {
3838

3939

4040
// init controller
41-
var controller = new ScrollMagic.Controller();
4241

4342

44-
new ScrollMagic.Scene({
45-
triggerElement: "#about-title",
46-
triggerHook: 0.9, // show, when scrolled 10% into view
47-
duration: "95%", // hide 10% before exiting view (80% + 10% from bottom)
48-
offset: 50 // move trigger to center of element
49-
})
50-
.setClassToggle("#about", "visible") // add class to reveal
51-
.addTo(controller);
52-
5343
var revealElements = document.getElementsByClassName("faq-card");
5444
for (let i = 0; i < revealElements.length; i++) {
5545
// create a scene for each element

0 commit comments

Comments
 (0)