Skip to content

Instantly share code, notes, and snippets.

View w3rafu's full-sized avatar

Rafael Fu w3rafu

View GitHub Profile
@tomhodgins
tomhodgins / scalable-hype.html
Last active December 6, 2020 21:51
paste this into the <head> of your Hype animation to enable scaling repsonsiveness
<!-- Add EQCSS -->
<script src=https://cdnjs.cloudflare.com/ajax/libs/eqcss/1.5.0/EQCSS.min.js></script>
<style>
/* Scope the Hype animation container */
@element '[id*=_hype_container]' {
$this {
@ohiosveryown
ohiosveryown / change-class-on-scroll.html
Last active May 9, 2024 16:56
Vanilla JS – change/add class based on scroll position.
// https://codepen.io/cmykw/pen/gemxJm
// layout
<nav/>
// style
<style>
body { min-height: 200vh; }
nav {