Skip to content

Instantly share code, notes, and snippets.

View jphungcode's full-sized avatar
🎯
Focusing

John Phung jphungcode

🎯
Focusing
View GitHub Profile
@jphungcode
jphungcode / scrollmagic_init.js
Created September 29, 2020 07:12
Scrollmagic Initalise
const intro = document.querySelector(".intro");
const controller = new ScrollMagic.Controller();
// set desired animation time long enough so that it doesn't skip frames when scrolling fast.
const animationTime = 2427;
// initialise scrollmagic scene
let scene = new ScrollMagic.Scene({
duration: animationTime,
@jphungcode
jphungcode / generatepolyhedra.ipynb
Created June 8, 2019 13:46
generatePolyhedra.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.