Created
September 6, 2022 05:00
-
-
Save samanpwbb/a063383944e683a5bb706137cac525c0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript:(function p(){ | |
const s = Math.min(window.innerWidth, window.innerHeight) / 2; | |
const img = [ | |
"iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAMAAABEpIrGAAAC8VBMVEXk4QBq2QBWpQDkWgCONQA7NQDGXAC7pgBK2gC65ADH3QA64wCS0gDciQBbSwCBNADjQQBkcQBbugCO4wBV5ADY5ACkvQAubgC+RgDJPwAzTACWiQDaywBd5ACF4wDcXwCvpABO4wC80gDOsQBasACf0gB3ogCPYgDjSQCBeQBnwwDk5QCmyQBprQDYtwCx4wBM0AC8jQDTVQBiVgCvkwDZ1ACIuQDjqAB4yABl4wDjxACneQBqSACaYQDkUgBubQB6rgDkzwCWyQDQcQC8VADKaADJUwBZVwCwhQDcwABtzgDkmQBzYQB0UwDjYgCkmwBYxQDI0wDGvABXhQClUgDcVQDXwgCzeQBGRwCxMQDMLgCOewBs4wDk2wBYZwDYPQCaMgBdPAA/0ADR4gBW0wBNNADjOADe3ACg4wA8hwDL5AA8ugB9hADjfwDjyQCKiQBNbADYoQCX2wAw2gC+fwAxkgCt0QAxsADidwBwlwBBeQC8mwDCcQCzUwDRjAAtzgBiiwBUQgAvoQC93AA92gCwvQDKegBvewDkvwBF4wDY2gCXowAxYgBizQCnXwDioACI2gBxjABpVACYVADZSQBJrwBPVACKVACjsgCBlABilwBpuAC7vgCyyQDZewCkaQDjsQCG0ACHpgB60QCTsgBmowBMugDC4wCo4wCaQwCX5ADe5ACn2wBUmwDTlwBX3ABnPADkaQCuagBClwDEyQCafgBWcwCHxwBMyACYcADHhwDjhwDOyQCwsQA9bQCNRwBEpQBg2gB5vACyRAB7bQDZMADk1QB52gB84wClLgBZLgDkkAB1MQDIlQDclQCMbwDTYQBkZABSXw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o6RRNE0TVZaYZB57xP/gdl8V4Bwrc0sTkD78XHr2QnUyPEPZZY6yhj57fKBjEBAdxZCS0DawZiEV8GizFNJQbSDa7J0h0pIsD3CbtPsUBS8SAC/zcAs7o+LNEWXjRPP30uErtm0tO6PixzFq8g1A99LhKWudUA1tZBoL+y14AD2L5uP20zTqen2azaH26lsR2A17Ka2y0Bmu9BEnqx1vL2hTYrpxJ6AcbJqXrOegfH1d0JECnzIZ8B4Wl7pmlOEa+UbQGWNV87lqacB66hufZrpLCp/1l8VU0A1tYHW5qBtjoDsaVuPzFCl6ioAOfRt25I1R06toGaoEEC3mcybP4Tn6Cmnbr6HSAWT59prhz1Uq97E0McG1R8+nEAAOl4LaYRschmYx0CUYsZ1GdWGT9bmjyJrRDqjs23czMBB5TL7/G8tJhKAVKT7Qt2UQ4m83RneiqhgZsq3mSRMFYA7Yy6UJ027CJ4JoagNBzOhe6x5B0cmMEwXSbFzcAwiS4BABRv5MWSiciqMwMd3Udpp5/c/lbhkPFWV1eSm6018wEDld2D8+Llm0kxMKJI1GP7mA2uSZdjVxqWmEHKN3ojZ8IExnxORSJuA/FfPdiAVg4T+mYdUmymvNKPJUlWnm65BIcCXaDfILVssoZEz85ZDDjHPDx6WSQMC7IvPQjXBxramUwDUTGZ35mCh0hwRSrUfpBHvT6Zf3MuVEdadxkqzXfDgUkDe9rBFY7gBd6UMO6SEovucadCCCaWeVihQeCGamwSxSoDoxPcNtoKwQqdHSiRXE61tr9TI06SA7WTlgfuu5CSCAQA8OSWcm2px6mqcs2F0JtIwVBYoA8Z4oxWI5XbZM7sZnkBBx1/6sqrVSv+/67Y8g2sk1QySpgDEN0BSFUSyvaM4fRq7bkki/VnXwAAAABJRU5ErkJggg==", | |
]; | |
const d = [...Array(6)].map((_, i) => `<filter colorInterpolationFilters="sRGB" id='squiggly-${i}'> | |
<feImage | |
width=${s} | |
height=${s} | |
href="data:image/png;base64,${img[i % 3]}" | |
result="noise" | |
/> | |
<feTile in="noise" result="noise" /> | |
<feGaussianBlur in="noise" result="noise" stdDeviation="3" /> | |
<feDisplacementMap | |
in="SourceGraphic" | |
in2="noise" | |
scale="${i % 2 ? '1.2' : '1.6'}" | |
xChannelSelector="R" | |
yChannelSelector="G" | |
/> | |
</filter>` | |
); | |
const svg = document.createElement('SVG'); | |
svg.innerHTML = `<svg style="display:none;" viewBox="0 0 ${window.innerWidth} ${window.innerHeight}" xmlns="http://www.w3.org/2000/svg" version="1.1"><defs>${d}</defs></svg>`; | |
const st = document.createElement('style'); | |
st.innerHTML = `.wilderplace-squiggle { animation: w-s 2s linear infinite; } | |
@keyframes w-s { | |
0% { filter: url('#squiggly-0'); } | |
16.6666% { filter: url('#squiggly-1'); } | |
33.3333% { filter: url('#squiggly-2'); } | |
50% { filter: url('#squiggly-3'); } | |
66.6666% { filter: url('#squiggly-4'); } | |
83.3333% { filter: url('#squiggly-5'); } | |
100% { filter: url('#squiggly-0'); } | |
}`; | |
document.head.appendChild(st); | |
document.body.appendChild(svg); | |
document.body.classList.add('wilderplace-squiggle'); | |
})() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment