Skip to content

Commit

Permalink
FIXED: Addon: SGNFullPage: Issue #85: Uncaught error: $pageNav is und…
Browse files Browse the repository at this point in the history
…efined in addon: SGNFullPage
  • Loading branch information
SagnikGanguly96 committed Feb 14, 2023
1 parent d8e0a67 commit e2722c1
Show file tree
Hide file tree
Showing 3 changed files with 194 additions and 88 deletions.
15 changes: 11 additions & 4 deletions demos/addons/fullpage.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
<meta charset="UTF-8">
<title>FullPage Addon - SGNUIKit Demo</title>
<script src="/src/js/SGNUIKit.loader.js"></script>
<!--<script src="/dist/js/SGNUIKit.loader.js"></script>-->
<style>
.color-block {
background-color: hsl(0, 0%, 80%);
Expand All @@ -35,7 +34,7 @@
}
</style>
</head>
<body class="sgn-fullpage-active">
<body>
<main>
<div class="sgn-fullpage text-white">
<div class="section blue-gradient d-flex container-center">Section-1</div>
Expand All @@ -53,9 +52,17 @@
</div>
</main>
<script>
SGNUIKit.setOnReadyListener((isReady) => {
/*$(function() {
const $fullpages = $(".sgn-fullpage");
console.log('Test:', $fullpages);
});
if($fullpages.length > 0) {
$fullpages.each(function() {
const $this = $(this);
$this.SGNFullPage();
});
}
});*/
</script>
</body>
</html>
19 changes: 18 additions & 1 deletion src/addons/SGNFullPage/SGNFullPage.css
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,31 @@
--sgn-fp-nav-active-size: 12px;
}

.sgn-fullpage-active > .sgn-atom-container > main > .sgn-container,
.sgn-fullpage-active > main > .sgn-container,
.sgn-fullpage {
flex: 1 0 100%;
}

.sgn-fullpage,
.sgn-fullpage > section,
.sgn-fullpage > .section {
height: 100vh;
}

.sgn-fullpage {
.sgn-fullpage.fade > section,
.sgn-fullpage.fade > .section,
.sgn-fullpage > section.fade,
.sgn-fullpage > .section.fade {
opacity: 0;
transition: opacity 2s ease-in-out;
}

.sgn-fullpage.fade > section.active,
.sgn-fullpage.fade > .section.active,
.sgn-fullpage > section.fade.active,
.sgn-fullpage > .section.fade.active {
opacity: 1;
}

.sgn-fullpage > section.sgn-fp-slides,
Expand Down
Loading

0 comments on commit e2722c1

Please sign in to comment.