Lava Tiles
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 - 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> </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);
});
Developer | Keegan Brown |
Username | keeganbrown |
Uploaded | October 16, 2022 |
Rating | 3 |
Size | 2,809 Kb |
Views | 14,168 |
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 |
A Pen by Keegan Brown | 478,008 Kb |
Easy-peasy 3D Scrolling Parallax with GSAP | 2,468 Kb |
Grow3.js Starter Pen | 2,344 Kb |
Brute Force Random Traveling Salesman solver | 5,376 Kb |
Particles with pixi.js | 2,963 Kb |
Reddit Fixed Position Image Scroller | 2,258 Kb |
Text With Mouse Reactive Soft Shadow | 2,692 Kb |
Trying out GSAP 1.19 | 3,898 Kb |
OnHover Flipping Tiles | 2,637 Kb |
Particles, Particles, Particles... | 2,416 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 |
Dribbble Inspired Registration Form | Lancebush | 2,358 Kb |
Reviews and Ratings Star | Zbnmstry | 1,591 Kb |
A Pen by Eka Risyana | Risyana | 3,705 Kb |
Formations | Cantelope | 5,731 Kb |
Cloudy Spiral CSS animation | Hakimel | 6,587 Kb |
Weather App | OmranAbazid | 2,596 Kb |
Navier Stoke Fluid Simulation | Esimov | 8,584 Kb |
Price Comparison Table | Orrinward | 3,459 Kb |
A Pen by Mohomed Anees | Mohomedanees | 12,597 Kb |
Knob rotation | Alemesre | 2,122 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!