JSFiddle - React, Tailwind, and code Playground
by fredd man
HTML
<!DOCTYPE cross-domain-policy SYSTEM "http://www.adobe.com/xml/dtds/cross-domain-policy.dtd">
<!--add 1-->
<body>
<style type="text/css">
body {
font-family: Arial, Helvetica, sans-serif;
}
t /* The Modal (background) */
.modal1 {
display: none; /* Hidden by default */
position: fixed; /* Stay in place */
z-index: 1; /* Sit on top */
left: 0;
top: 0;
width: 100%; /* Full width */
height: 100%; /* Full height */
overflow: auto; /* Enable scroll if needed */
background-color: rgb(0,0,0); /* Fallback color */
background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}
/* Modal Content/Box */
.modal1-content {
position: relative;
background-color: #fefefe;
margin: 10px; /* 15% from the top and centered */
padding: 0;
border: 1px solid #888;
border-radius: 15px;
top: 0;
width: 570px; /* Could be more or less, depending on screen size */
box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19);
-webkit-animation-name: animatetop;
-webkit-animation-duration: 0.4s;
animation-name: animatetop;
animation-duration: 0.4s
}
/* Add Animation */
@-webkit-keyframes animatetop {
from {top:-300px; opacity:0}
to {top:0; opacity:1}
}
@keyframes animatetop {
from {top:-300px; opacity:0}
to {top:0; opacity:1}
}
/* The Close Button */
.close1 {
color: #666;
float: right;
font-size: 20px;
font-weight: bold;
}
.close1:hover, .close1:focus {
color: black;
text-decoration: none;
cursor: pointer;
}
/* Modal Header */
.modal1-header {
padding: 2px 16px;
background-color: #f0f0f0;
font-size: 22px;
text-align: center;
color: black;
}
/* Modal Body */
.modal1-body {padding: 2px 16px;}
.button1 {
position: relative;
top: 0;
}
</style>
<!-- Trigger/Open The Modal -->
<button id="myBtn1" class="button button1">New world twitch</button>
<!-- The Modal -->
<div id="myModal1" class="modal1">
<!-- Modal content...