JSFiddle - React, Tailwind, and code Playground
by 규연 황
HTML
<div class="wrap">
<p><span class="-clone">Just put your image size (width & height) after our URL and you'll get a placeholder.</span></p>
<p><span class="-slice">Just put your image size (width & height) after our URL and you'll get a placeholder.</span></p>
</div>
CSS
body {
background-color: #000;
}
.wrap {
width: 300px;
margin: 30px;
}
p {
margin: 30px 0;
}
span {
background: #eee;
font-size: 16px;
line-height: 2em;
background-image: linear-gradient(-144deg, #6AEEC6 0%, #698D28 100%);
border-radius: 4px;
padding: 4px 18px;
box-sizing: border-box;
}
.-clone {
-webkit-box-decoration-break: clone;
box-decoration-break: clone;
}
.-slice {
-webkit-box-decoration-break: slice;
box-decoration-break: slice;
}