JSFiddle - React, Tailwind, and code Playground
by Hensixteen
HTML
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<style>
body {
padding: 0;
margin: 0;
background-color: "#10030";
}
canvas {
z-index: 1;
top:0;
left: 0;
width: 100%;
height: 100%;
position: absolute;
overflow: hidden;
/* Overflow stops the canvas from scrolling or having scroll bars.*/
}
#info {
border-radius: 10px;
padding: 10px;
position: fixed;
z-index: 2;
display: block;
background-color: #111111;
color: white;
width: 120px;
height: 30px;
right: -95px;
bottom: 20px;
transition: right 1s;
}
#info:hover {
right: -10px;
transition: right 1s;
}
#i{
padding-right: 5px;
}
#github{
padding-right: 5px;
}
#inInfo {
display: inline-block;
margin: auto;
}
</style>
</head>