Skip to content

Instantly share code, notes, and snippets.

@nyawach
Created January 26, 2017 05:27
Show Gist options
  • Save nyawach/bbf68e954ca879749777958e3c4ee677 to your computer and use it in GitHub Desktop.
Save nyawach/bbf68e954ca879749777958e3c4ee677 to your computer and use it in GitHub Desktop.
阿修羅がフェードインしてくるだけのブックマークレット
javascript:var img=new Image(); img.src="https://images-na.ssl-images-amazon.com/images/I/41kEvP4RfXL._SX342_.jpg"; img.style.position="absolute"; img.style.opacity=0.01; img.style.bottom=0; img.style.right=0; var op = 0; var val = 0.01; img.onload = function() { var tid = setInterval(function(){ img.style.opacity = op; op += val; if(img.style.opacity >= 0.5) clearInterval(tid); }, 80); document.body.appendChild(img); }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment