Skip to content

Instantly share code, notes, and snippets.

@jesseyuen
jesseyuen / .env
Last active February 11, 2021 13:20
Example .env file for the Repl.it version of the prototype kit. Place at the root directory of your project.
# Add this code to the bottom of your .env file. Ensure to personalise the username and password values.
# This is required by Repl.it to enforce auth
NODE_ENV=production
# Add your personal username and password here
USERNAME=addYourUsernameHere
PASSWORD=addYourPasswordHere
@jesseyuen
jesseyuen / examples
Last active April 8, 2019 10:31
Code examples for Reduced Motion Queries
/*Learn more: https://jesseyuen.com/motion-queries-in-the-wild/*/
/* Quick and dirty attempt to remove ALL the motion */
@media (prefers-reduced-motion) {
*,
*:before,
*:after {
animation: unset !important;
transition: none !important;
}
// Velocity Animation
function initVelocity () {
var pos = 0,
delay = 200,
delayLong = 400,
duration = 500,
home = $('.is-front-page');