JSFiddle - React, Tailwind, and code Playground

by tjerabek

HTML

<div id="presentation">
</div>
<div class="presentation-handle">Táhnout</div>
<div class="presentation-next">Další</div>

CSS

body{
    padding: 50px;
}
#presentation{
    width: 550px;
    height: 150px;
    background: gray;
}
.presentation-handle{
    position: absolute;
    margin-top: -150px;
    height: 150px;
    background: green;
    width: 80px;
    margin-left: 550px;
    
    animation: myfirst 1s;
    -moz-animation: myfirst 1s; /* Firefox */
    -webkit-animation: myfirst 1s; /* Safari and Chrome */
}
.presentation-next{
    position: absolute;
    background: yellow;
    width: 50px;
    height: 60px;
    
    animation: myfirst2 1s;
    -moz-animation: myfirst2 1s; /* Firefox */
    -webkit-animation: myfirst2 1s; /* Safari and Chrome */
}

@keyframes myfirst
{
from { margin-left: 470px; }
to { margin-left: 550px; }
}

@-moz-keyframes myfirst /* Firefox */
{
from { margin-left: 470px; }
to { margin-left: 550px; }
}

@-webkit-keyframes myfirst /* Safari and Chrome */
{
from { margin-left: 470px; }
to { margin-left: 550px; }
}

@keyframes myfirst2
{
from { margin-top: -80px; }
to { margin-top: 0; }
}

@-moz-keyframes myfirst2 /* Firefox */
{
from { margin-top: -80px; }
to { margin-top: 0; }
}

@-webkit-keyframes myfirst2 /* Safari and Chrome */
{
from { margin-top: -80px; }
to { margin-top: 0; }
}