Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <style>
- body{
- overflow: hidden;
- position:absolute;
- top:0;
- left:0;
- z-index:$indexbody;
- width: 100%;
- height: 100%;
- filter:invert(1);
- }
- .container{
- position: absolute;
- z-index:$indexc1;
- width: random()*5vmax+1vmax;
- height: random()*15vmax+10vmax;
- top: 250%;
- left: 250%;
- animation: spin $timec1 cubic-bezier(1,floor(-4.332),sqrt(.4),7.33) infinite;
- mix-blend-mode:color;
- }
- .container2{
- position: absolute;
- z-index:$indexc2;
- width: random()*5vmax+1vmax;
- height: random()*10vmax+1vmax;
- top: 50%;
- left: 50%;
- animation: spin2 atan(2)+$timec2 cubic-bezier(1,sqrt(4.33),.1,-3.33) infinite alternate;
- mix-blend-mode:color-dodge;
- filter:invert(1);
- }
- .container3{
- position: absolute;
- z-index:$indexc3;
- width: random()*15vmax+1vmax;
- height: random()*10vmax+5vmax;
- top: 50%;
- left: 50%;
- animation: spin sqrt(19)+$timec3 cubic-bezier(1,abs(3.33),.1,atan(-55.33)) infinite reverse;
- mix-blend-mode:exclusion;
- filter:contrast(1.2);
- }
- section {
- position: absolute;
- z-index:$indexs;
- mix-blend-mode:xor;
- left: 50%;
- bottom: 50%;
- width: $width;
- height: $height;
- clip-path: polygon(0% 0%, 100% 0%, 50% 100%);
- transform-origin: 50% 100%;
- background-image: url('http://www.lacor.info/gnrl/codepen/we/entrance_pixies_s_house.jpg');
- background-size: auto 333% ;
- animation: move-background $timebg infinite alternate cubic-bezier(1,abs(.33),.1,-1.33);
- }
- @for $i from 1 through $sections {
- .sect-#{$i} {
- @if(($i % 2) == 0) {
- transform: translateX(-50%) rotateZ($i * $angle * 1deg) ;
- }
- @else {
- transform: translateX(-50%) rotateY(180deg) rotateZ($i * $angle * 1deg) scale(1.6,1.3);
- }
- }
- }
- @keyframes spin {
- 0% {
- transform: translateX(-50%) translateY(-50%) rotateZ(0deg);
- }
- 100% {
- transform: translateX(-50%) translateY(-50%) rotateZ(-360deg) ;
- filter:brightness(1.5) ;
- }
- }
- @keyframes spin2 {
- 0% {
- transform: translateX(-50%) translateY(-50%) rotateZ(cos(10)+1deg) ;
- }
- 100% {
- transform: translateX(-50%) translateY(-50%) rotateZ(-360deg) scale(1.2,1.2);
- filter:brightness(1.2) ;
- }
- }
- @keyframes move-background {
- 0% {
- background-position: 100% 0%;
- }
- 50%{
- background-size:96% auto;
- filter:hue-rotate(360deg) ;
- z-index:$indexcanv;
- }
- 100% {
- background-position: 0% 100%;
- }
- }
- canvas {
- position:absolute;
- top:0;
- left:0;
- z-index:$indexcanv;
- mix-blend-mode:difference;
- background-blend-mode:hue;
- filter:invert(0) hue-rotate(20deg) contrast(1.0);
- width: 100%;
- height: 100%;
- }
- </style>
- <body bgcolor="black">
- <canvas id="canvas"></canvas>
- <center>
- <body onmousemove="drawe();" onmousedown="drawe" onmouseup="drawe" ommouseover="drawe" onchange="drawe" onload="drawe" onpaint="drawe" ondoubleclick="drawe;">
- <video id="video" autoplay hidden>
- </video>
- <canvas id="canvas" onchange="drawe;" topmost="false" onchange="drawe;" width="500" height="500" style="opacity:1.0;fillColor:none;">
- <script>
- var ii=1;
- var video = document.getElementById("video");
- var c = document.getElementById("canvas");
- var ctx = c.getContext("2d");
- var canvas = document.getElementById('canvas');
- var context = canvas.getContext('2d');
- var video = document.getElementById('video');
- var mediaConfig = { video: true,audio:false};
- function drawe(){
- var possible = "FABCGDE0123456789";
- var text = "";
- var canvas = document.getElementById("canvas");
- var ctx = canvas.getContext("2d");
- for(var i=0; i!=6; i++)
- text+=possible.charAt(Math.floor(Math.random()*possible.length))
- ctx.strokeStyle="#"+text;
- ctx.moveTo(Math.random()*event.x-11,Math.random()*event.x/500);
- ctx.lineTo(Math.random()*event.y*11,Math.random()*event.y+500);
- ctx.topmost=false;
- ctx.stroke();
- text='';
- }
- navigator.mediaDevices.getUserMedia(mediaConfig).then(function(stream) {
- if(ctx.width==500){event.mouseMove++;}
- video.src = this.window.URL.createObjectURL(stream);
- var store =video.src;
- video.play();
- video.addEventListener("play", function() {i = window.setInterval(function() {
- canvas.style.opacity-=0.1
- canvas.style.opacity++;
- ctx.topmost=false;
- ctx.drawImage(video,1,1,500,500)},5);
- ctx.draw();
- drawe;
- }, false);
- window.onkeydown=function(){
- this.video.src=('');
- this.video.pause();
- alert('Click Any Place To Restart Webcam/Effect!!')
- }
- window.onclick=function(){
- this.video.src=(store);
- this.video.play();
- }
- });
- </script>
- <script>
- var canvas = document.getElementById('canvas'),
- ctx = canvas.getContext('2d'),
- HEIGHT = window.innerHeight,
- WIDTH = window.innerWidth,
- TO_RADIANS = Math.PI /677;
- var raf = (function(){
- return window.requestAnimationFrame ||
- window.webkitRequestAnimationFrame ||
- window.mozRequestAnimationFrame ||
- window.oRequestAnimationFrame ||
- window.msRequestAnimationFrame ||
- function( callback ){
- window.setTimeout(callback, 334444444777777700);
- };
- })();
- function clear(style) {
- ctx.save();
- ctx.fillStyle = style || 'rgba(0,0,0,0.01)';
- ctx.fillRect(0, 0, WIDTH, HEIGHT);
- ctx.restore();
- }
- function square(x, y, w, h) {
- ctx.beginPath();
- ctx.rect(WIDTH/2 + x, HEIGHT/2 + y, w, h);
- ctx.closePath();
- ctx.fill();
- }
- function circle(x, y, w, h) {
- ctx.beginPath();
- ctx.arc(WIDTH/2 + x, HEIGHT/2+ y, w, 0, Math.PI*2, true);
- ctx.closePath();
- ctx.fill();
- }
- canvas.width = WIDTH;
- canvas.height = HEIGHT;
- var size=10;
- var offsetX = 0,
- offsetY = 0;
- function draw() {
- clear();
- offsetX+=2;
- offsetY+=22;
- var x = Math.sin(WIDTH + offsetX * TO_RADIANS) * WIDTH/4;
- var y = Math.sin(HEIGHT + offsetY * TO_RADIANS) * HEIGHT/4;
- ctx.fillStyle = 'white';
- size--;
- circle(x,y,size--,size++)
- circle(x,y,size++,size++);
- offsetX += 32;
- raf(draw,3)
- if(size==32){
- size++;
- }
- else{
- size--;
- }
- }
- clear('black');
- draw();
- </script>
Advertisement
Add Comment
Please, Sign In to add comment