JSFiddle - React, Tailwind, and code Playground

by venkateshwar

HTML

<div class="ellipsis">
    <span class="dots">...</span>
    <span class="otherDots">.............................................</span>
    <span class="content">Hello this is Mr_Green from Stackoverflow. I love CSS. I live in CSS and I will never leave working on CSS even my work is on other technologies.</span><span class="afterHolder"></span>
</div>

CSS

div{
    height: 3em;
    line-height: 1.5em;
    width: 80%;
    border: 1px solid green;
    overflow: hidden;
    position: relative;
}
.afterHolder:after{
    content: ". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  . . . . . . . . . . . . . . . . . . . . . . . . . . . .";
    background-color: white;
    color: white;
    display: inline;
    position: relative;
    box-shadow: 8px 1px 1px white;
    z-index: 6;
}
.dots, .otherDots{
    position: absolute;
    bottom: 0px;
    right: 0px;
    background-color: white;
}
.otherDots{
    z-index: 1;
}
.dots{
    z-index:2;
}

.content{
    position: relative;
    z-index: 1;
    background-color: white;
}

JavaScript

//-2px 1px 1px rgb(0, 0, 0), 4px 1px 2px black,10px 1px 2px black