Skip to content

Instantly share code, notes, and snippets.

@cheeseonamonkey
Last active December 9, 2025 05:03
Show Gist options
  • Select an option

  • Save cheeseonamonkey/8a3d6195f9aa7ca31a9645f7a522d237 to your computer and use it in GitHub Desktop.

Select an option

Save cheeseonamonkey/8a3d6195f9aa7ca31a9645f7a522d237 to your computer and use it in GitHub Desktop.
loading_tip_thing.html
<style>
body::after{
content:attr(data-q);
position:absolute;
top:10px;
right:-30px;
color:#e5e7eb;
font-size:13px;
font-weight:600;
font-style:italic;
opacity:.95;
font-family:"Exo 2",sans-serif;
pointer-events:none;
white-space:pre;
display:inline-block;
transform-origin:left center;
text-shadow:1px 0 rgba(255,90,90,.5),-1px 0 rgba(0,255,255,.4),0 0 3px rgba(255,255,255,.18)
}
body.q::after{animation:g .7s steps(1,end)}
@keyframes g{
0%{transform:rotate(var(--r)) translate(0,0)}
15%{transform:rotate(var(--r)) translate(2px,-2px) skewX(14deg)}
30%{transform:rotate(var(--r)) translate(-3px,3px) skewX(-16deg)}
45%{transform:rotate(var(--r)) translate(2px,0) skewX(10deg) scale(1.04)}
60%{transform:rotate(var(--r)) translate(-2px,-2px) skewX(-10deg)}
80%{transform:rotate(var(--r)) translate(2px,1px) skewX(5deg)}
100%{transform:rotate(var(--r)) translate(0,0) skewX(0) scale(1)}
}
</style>
<script>(()=>{let _=['"Less is learned."','"Seek structure, not size."','"The simplest form wins."','"Meaning survives compression."','"Find the pattern behind the noise."','"Complexity dissolves under insight."','"Premature optimization is the root of all evil."','"Fast is better than clever."','"Cache is a lie we agree to believe."','"Determinism beats raw speed."','"Undefined behavior is still behavior."','"Entropy always gets a vote."','"There is no cloud, only other people’s computers."','"It worked yesterday."','"Weeks of coding can save you hours of planning."','"The bug is always in the last place you look."','"Hardware is just software that drank too much coffee."','"Everything is a race condition if you’re brave enough."','"Real programmers measure twice, deploy once."'],$=0,ƒ=()=>_[Math.random()*_.length|0],ψ=t=>{let a=[...t],i=[];for(let j=0;j<a.length;j++)/[A-Za-z]/.test(a[j])&&i.push(j);for(let s=0;s<Math.min(12,Math.max(4,Math.floor(i.length/3)));s++){let m=i[Math.random()*i.length|0],n=i[Math.random()*i.length|0];[a[m],a[n]]=[a[n],a[m]]}return a.join("")},Ω=(b,d)=>{let e=document.body,n=++$,f=0,F=d|0,S=90;e.style.setProperty("--r",(10+Math.random()*25).toFixed(1)+"deg"),e.classList.remove("q"),void e.offsetWidth,e.classList.add("q");(function h(){if(n!=$)return;f<F?(e.setAttribute("data-q",ψ(b)),f++,setTimeout(h,S)):e.setAttribute("data-q",b)})()},R=()=>Ω(ƒ(),7),L=()=>Ω(ƒ(),11);addEventListener("DOMContentLoaded",L);addEventListener("click",R)})();</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment