remove scroll magic for now

working on it on a separate branch
This commit is contained in:
Jeppe Ernst 2018-01-21 00:59:39 +01:00
parent 2514e002b5
commit 3356f60421
7 changed files with 0 additions and 69 deletions

View file

@ -16,10 +16,5 @@
<footer>
Last generated at {{ site.time | date_to_rfc822 }}
</footer>
<script src="{{ site.baseurl }}/assets/js/vendor/ScrollMagic.min.js"></script>
<script src="{{ site.baseurl }}/assets/js/vendor/TweenMax.min.js"></script>
<script src="{{ site.baseurl }}/assets/js/vendor/animation.gsap.js"></script>
<script src="{{ site.baseurl }}/assets/js/vendor/debug.addIndicators.min.js"></script>
<script src="{{ site.baseurl }}/assets/js/main.js"></script>
</body>
</html>

View file

@ -1,48 +0,0 @@
// var controllerPanes = new ScrollMagic.Controller({
// globalSceneOptions: {
// triggerHook: 'onLeave'
// }
// });
// var controllerAnimations = new ScrollMagic.Controller({
// globalSceneOptions: {
// //triggerHook: 'onLeave'
// }
// });
// // get all sections
// var sections = document.querySelectorAll("section");
// var sectionCount = sections.length;
// var sectionDurations = [];
// var wipeAnimation = new TimelineLite()
// for (var i = 0; i < sections.length; i++) {
// sectionDurations.push(sections[i].offsetHeight/300);
// wipeAnimation = wipeAnimation.fromTo(sections[i], sectionDurations[i], {
// y: "0",
// }, {
// y: i == sections.length - 1 ? "0" : "-100%",
// })
// }
// // create scene for every slide
// //for (var i = 0; i < sections.length - 1; i++) {
// new ScrollMagic.Scene({
// triggerElement: document.getElementsByClassName("container")[0],
// triggerHook: "onLeave",
// })
// .setPin(document.getElementsByClassName("container")[0])
// .setTween(wipeAnimation)
// .addIndicators() // add indicators (requires plugin)
// .addTo(controllerPanes);
// //}
// // for (var i = 0; i < sections.length; i++) {
// // new ScrollMagic.Scene({
// // triggerElement: sections[i]
// // })
// // .setClassToggle(sections[i], "appear")
// // .addIndicators({name: "1 - add a class"}) // add indicators (requires plugin)
// // .addTo(controllerAnimations);
// // }

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

View file

File diff suppressed because one or more lines are too long