thanos-end-game
Version:
A custom web component to make your html element disappear with one snap of thanos. But unlike thanos power, this componentdoes not bring back the dead. Use it wisely. :)
27 lines (26 loc) • 1.2 kB
HTML
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Thanos Snap</title>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.12.1/jquery-ui.min.js"></script>
</head>
<body>
<div class="container ">
<div class="row d-flex justify-content-center">
<div id='iron-man' class="iron-man mt-4">
<img src="iron-man.png" height="400px"/>
</div>
</div>
<div class="row">
<button class="btn btn-outline-danger mx-auto mt-4" id='thumb'>Snap</button>
</div>
</div>
<thanos-snap object='iron-man' weapon='thumb'></thanos-snap>
<script src="thanosjs.min.js"></script>
</body>
</html>