Advertisement
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: 50%;
- left: 50%;
- 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>
- <center>
- <body onmousemove="setInterval(Load_Img('http://www.w3schools.com/graphics/pic_the_scream.jpg'),34)" background-color="white">
- <video id="video" autoplay hidden>
- </video>
- <canvas id="canvas" width="500" height="500" style="drawColor:#FFFFFF">
- <script>
- var video = document.getElementById("video");
- var c = document.getElementById("canvas");
- var ctx = c.getContext("2d");
- var i=0;
- var mediaConfig = { video:true,audio:false};
- navigator.mediaDevices.getUserMedia(mediaConfig).then(function(stream) {
- video.src = this.window.URL.createObjectURL(stream);
- video.play();
- video.addEventListener("play", function() {i = window.setInterval(function() {
- ctx.drawImage(video,0,0,500,500)},10);
- }, false);
- });
- function Load_Img(path){
- var h,w;
- h=('500');
- w=('500')
- var canvas = document.getElementById("canvas");
- var ctx = canvas.getContext("2d");
- var img = new Image();
- img.src=(path);
- ctx.drawImage(img, 1, 1,h,w);
- }
- </script>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement