JSFiddle - React, Tailwind, and code Playground

HTML

<div style="position:relative;">
    Her vises et eksempel på hvordan det måske kunne gøres
    <div class="showit">
        Peg på mig og få det til at ske
        <div id="cover">
        </div>
        <div class="presentation">Dette skal vises forrest</div>

    </div>
</div>

CSS

#cover
{
    position: absolute;
    left: 0px;
    top: 0px;
    width: 100%;
    height: 200px;
    height: 800px;
    background-color: red;
    visibility:collapse;
    opacity: 0;
}

.showit
{}

.showit:active #cover 
{
    visibility:visible;
    opacity: 1;
}

.showit:active .presentation
{
    visibility:visible;
    opacity: 1;
}

.presentation
{
    height: 70px;
    width: 100px;
    border: 2px solid blue;
    text-align:center;
    padding-top: 50px;
    position: absolute;
    left: 30%;
    top: 150px;
    background-color: white;
    visibility:collapse;
    opacity: 0;
}

JavaScript

sdf