JSFiddle - React, Tailwind, and code Playground

by thanhansoft

HTML

<div class="convertfox-messanger box-shadow-padding is-active" id="convertfoxChat">
<span class="convertfox-messanger-window-shadow" style="display: flex;"></span>
</div>

CSS

body {
    font-family: Roboto,-apple-system,BlinkMacSystemFont,Roboto,"Helvetica Neue",Arial,sans-serif;
    font-size: 1em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color: #2d3138;
    margin: 0;
}

.box-shadow-padding {
    padding: 0 20px 0 40px!important;
}
.convertfox-messanger {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    line-height: 22px;
    font-size: 1rem;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    padding: 0 20px 0 0;
}
.convertfox-messanger.is-active .convertfox-messanger-window-shadow {
    -webkit-transform: none;
    transform: none;
    opacity: 1;
    pointer-events: inherit;
}
.convertfox-messanger .convertfox-messanger-window-shadow {
    height: calc(100% - 105px);
    border-radius: 15px 15px 0 15px;
    -webkit-box-shadow: 0 36px 64px 0 rgba(0,0,0,.12);
    box-shadow: 0 36px 64px 0 rgba(0,0,0,.12);
    position: absolute;
    margin: auto;
    top: 15px;
    left: 40px;
    right: 20px;
    opacity: 0;
    -webkit-transform: translateY(50px) scaleY(.94);
    transform: translateY(50px) scaleY(.94);
    -webkit-transition: transform .5s cubic-bezier(.19,1,.22,1),opacity .2s ease;
    -moz-transition: transform .5s cubic-bezier(.19,1,.22,1),opacity .2s ease;
    -ms-transition: transform .5s cubic-bezier(.19,1,.22,1),opacity .2s ease;
    -o-transition: transform .5s cubic-bezier(.19,1,.22,1),opacity .2s ease;
    transition: transform .5s cubic-bezier(.19,1,.22,1),opacity .2s ease;
}