Lava Tiles

Developer
Size
2,809 Kb
Views
14,168

How do I make an lava tiles?

What is a lava tiles? How do you make a lava tiles? This script and codes were developed by Keegan Brown on 16 October 2022, Sunday.

Lava Tiles Previews

Lava Tiles - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Lava Tiles</title> <style> /* NOTE: The styles were added inline because Prefixfree needs access to your styles and they must be inlined if they are on local disk! */	*, *:before, *:after { -moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box; }
body, html { width: 100%; height: 100%; margin:0; padding: 0; overflow:hidden;
}
body{	}
#wrap {	perspective: 550px; width: 100%; height: 100%; overflow: hidden;
}
.one { height:10%; width: 10%; text-decoration: none; display:block; float:left; position:relative; z-index: 1; transform: translate3d(0,0,0)
}
.one span{ display:block; height: 100%; width: 100%;
}
#wrap .one { background-image:url(http://mindandcode.com/assets/imgs/bg.png);
} </style> <script src="https://cdnjs.cloudflare.com/ajax/libs/prefixfree/1.0.7/prefixfree.min.js"></script>
</head>
<body> <div id="wrap">
<a class="one" href="#"><span>&nbsp;</span></a>
</div> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script>
<script src='http://cdnjs.cloudflare.com/ajax/libs/gsap/1.11.3/TweenMax.min.js'></script> <script src="js/index.js"></script>
</body>
</html>

Lava Tiles - Script Codes CSS Codes

*, *:before, *:after { -moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box; }
body, html { width: 100%; height: 100%; margin:0; padding: 0; overflow:hidden;
}
body{	}
#wrap {	perspective: 550px; width: 100%; height: 100%; overflow: hidden;
}
.one { height:10%; width: 10%; text-decoration: none; display:block; float:left; position:relative; z-index: 1; transform: translate3d(0,0,0)
}
.one span{ display:block; height: 100%; width: 100%;
}
#wrap .one { background-image:url(http://mindandcode.com/assets/imgs/bg.png);
}

Lava Tiles - Script Codes JS Codes

$(function(){ function multiply () { var html = $("#wrap")[0].innerHTML; var out = ""; var limit = 10; for ( var ix = 0; ix < limit; ix++ ) { for ( var iy = 0; iy < limit; iy++ ) { var _html = html.replace( 'href="#"','href="#" style="background-position: -'+(Math.random()*limit*limit)+"% -"+(Math.random()*limit*limit)+'%"' ); out += _html; } } $("#wrap").html(out); } multiply(); //$("#wrap").width( $("body").height() ); function flip(target, heading) { //TweenMax.to( target, 1, { z: -1500, yoyo: true, repeat:1 }); } function relativeOutput( input ) { var abs = Math.abs(input); if ( abs > 20 ) { //console.log(abs); return input*4; } else { return 0; } } $(".one").mouseenter(function(e){ //console.log(e); var x = ($(this).width()/2) - e.offsetX; var y = ($(this).height()/2) - e.offsetY; flip(this, { x: y, y: x, w: ($(this).width()/2), h: ($(this).height()/2) } ); }); function animateWall (i, ele) { TweenMax.to( ele, 8, {backgroundPositionY:"+=100%", ease:Linear.easeNone, onComplete: animateWall, onCompleteParams: [i,ele] } ); } $(".one").each(animateWall);
});
Lava Tiles - Script Codes
Lava Tiles - Script Codes
Home Page Home
Developer Keegan Brown
Username keeganbrown
Uploaded October 16, 2022
Rating 3
Size 2,809 Kb
Views 14,168
Do you need developer help for Lava Tiles?

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!

Keegan Brown (keeganbrown) Script Codes
Create amazing art & images with AI!

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!