console
<div class="list">
<h3>CSS Only Item Check List</h3>
<label>
<input type="checkbox">
<i></i>
<span>Love is more than a word</span>
</label>
<label>
<input type="checkbox">
<i></i>
<span>it says so much</span>
</label>
<label>
<input type="checkbox">
<i></i>
<span>When I see these four letters</span>
</label>
<label>
<input type="checkbox">
<i></i>
<span>I almost feel your touch</span>
</label>
<label>
<input type="checkbox">
<i></i>
<span>This is only happened since</span>
</label>
<label>
<input type="checkbox">
<i></i>
<span>I haven't got a clue</span>
</label>
</div>
body {
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
background: #001925;
}
.list {
padding: 15px 75px 10px 30px;
position: relative;
background: #042b3e;
border-top: 50px solid #03a9f4;
}
.list h3 {
color: #fff;
font-size: 30px;
padding: 10px 0;
margin-left: 10px;
display: inline-block;
border-bottom: 4px solid #fff;
}
.list label {
position: relative;
display: block;
margin: 30px 0;
color: #fff;
font-size: 24px;
cursor: pointer;
}
.list input[type="checkbox"] {
-webkit-appearance: none;
}
.list i {
position: absolute;
top: 2px;
display: inline-block;
width: 25px;
height: 25px;
border: 2px solid #fff;
}
.list input[type="checkbox"]:checked ~ i{
top: 1px;
border-top: none;
border-right: none;
width: 25px;
height: 15px;
transform: rotate(-45deg);
}
.list span {
position: relative;
left: 40px;
transition: .5s;
}
.list span::before {
content: "";
position: absolute;
top: 50%;
left: 0;
width: 100%;
height: 1px;
background:#fff;
transform: translateY(-50%) scale(0);
transform-origin: right;
transition: transform .5s;
}
.list input[type='checkbox']:checked ~ span::before {
transform: translateY(-50%) scale(1);
transform-origin: left;
transition: transform .5s;
}
.list input[type='checkbox']{
color: #154e6b;
}