Glitchicken
How do I make an glitchicken?
This is lamb.. What is a glitchicken? How do you make a glitchicken? This script and codes were developed by Uriuriuriu on 10 January 2023, Tuesday.
Glitchicken - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>glitchicken</title> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/meyer-reset/2.0/reset.min.css"> <link rel="stylesheet" href="css/style.css">
</head>
<body> <div data-glitch-src="https://dl.dropboxusercontent.com/u/90712768/img/lambchop_min.jpg"></div>
<div><image src="https://dl.dropboxusercontent.com/u/90712768/img/lambchop_min.jpg"></div> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script> <script src="js/index.js"></script>
</body>
</html>
Glitchicken - Script Codes CSS Codes
* { color: #ccc;
}
body { background-color: #222; font-size: 2px; margin: 20px;
}
div { border: solid 10px #fff; float: left; margin: 2px; width: 420px; height: 520px; box-sizing: border-box; cursor: pointer;
}
Glitchicken - Script Codes JS Codes
(function($){ $.fn.glitchBoy=function(options){ var options = $.extend({ FPS : 15, duration: 3000, factor: 5 }, options); /* 一致した要素上で繰り返す */ return this.each(function(){ var $this = $(this); var img = document.createElement('img'); img.crossOrigin = 'anonymous'; var url = $this.data("glitch-src"); var canvas = document.createElement('canvas'); var ctx = canvas.getContext('2d'); var canvasOrigine = document.createElement('canvas'); var ctxOrigine = canvasOrigine.getContext('2d'); img.onload = function() { var width = canvas.width = canvasOrigine.width = img.width; var height = canvas.height = canvasOrigine.height = img.height; ctxOrigine.drawImage(img, 0, 0); $this.append(canvas); var frm = 0; var timer = setInterval(function () { frm++; var par = (frm * options.FPS) / options.duration; par *= Math.pow(par, options.factor); var imageData = ctxOrigine.getImageData(0,0,width,height); var data = imageData.data; var randR = Math.floor(Math.random()*options.factor); var randG = Math.floor(Math.random()*options.factor)*3; var randB = Math.floor(Math.random()*options.factor); for(var i = 0, len = imageData.width * imageData.height; i<len; i++){ data[i*4 + 0] = data[(i + randR)*4 + 0]; data[i*4 + 1] = data[(i + randG)*4 + 1]; data[i*4 + 2] = data[(i + randB)*4 + 2]; data[i*4 + 3] = 255; } ctx.putImageData(imageData,0,0); if(options.duration <= frm){ clearInterval(timer); } }, 1000 / options.FPS); } img.src = url; return this; }); };
})(jQuery);
$(function(){ $("div").glitchBoy({FPS:10}); $("div").click(function(){ $(this).html("").glitchBoy(); })
});
Developer | Uriuriuriu |
Username | uriuriuriu |
Uploaded | January 10, 2023 |
Rating | 3 |
Size | 2,764 Kb |
Views | 4,048 |
Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!
Name | Size |
Three.js ver.2 animation | 3,114 Kb |
ClickPanel | 3,068 Kb |
AngularJS - first step - | 3,009 Kb |
Css action sideBar | 3,928 Kb |
Shuffle text word separator | 3,208 Kb |
Simple genetic algorithm | 10,179 Kb |
Canvas circle gauge | 3,773 Kb |
Canvas Gaussian Blur | 3,439 Kb |
SANGETUKI separator | 11,128 Kb |
Masonry | 5,005 Kb |
Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!
Name | Username | Size |
Opening Reveal Modal On Document Ready | Winghouchan | 1,787 Kb |
Bloomberg Style Link Hover | Gil-- | 1,609 Kb |
Css3 slide | Nakome | 3,190 Kb |
A Pen by boilzzz | Boilzzz | 2,761 Kb |
Text Looping Transition | Agelber | 5,619 Kb |
Product item | Mymahesh11 | 2,256 Kb |
SVG Scalable Text | Said_FD | 1,451 Kb |
Brent Burns Tribute Page | Nevada48 | 2,569 Kb |
Click Based Rotation Demo | Zeaklous | 2,086 Kb |
Z-index demo | Kblh | 1,534 Kb |
Surf anonymously, prevent hackers from acquiring your IP address, send anonymous email, and encrypt your Internet connection. High speed, ultra secure, and easy to use. Instant setup. Hide Your IP Now!