I need assistance with implementing a toggle animation I found here: https://codepen.io/7harrypotterrr/pen/OrBwPY. I'm unsure how to apply it to my code and replace the current toggle button that is in use here: https://codepen.io/7harrypotterrr/pen/ebPKjZ
.toggle-box {
display: none;
}
.toggle-box + label {
cursor: pointer;
display: block;
font-weight: bold;
line-height: 21px;
margin-bottom: 5px;
}
.toggle-box + label + div {
display: none;
margin-bottom: 10px;
}
.toggle-box:checked + label + div {
display: block;
}
.toggle-box + label:before {
background-color: #4F5150;
-webkit-border-radius: 10px;
-moz-border-radius: 10px;
border-radius: 10px;
color: #FFFFFF;
content: "+";
display: block;
float: left;
font-weight: bold;
height: 20px;
line-height: 20px;
margin-right: 5px;
text-align: center;
width: 20px;
}
.toggle-box:checked + label:before {
content: "\2212";
}
.checkbox:hover {
color: #0da1ec !important;
}
label:hover {
color: pink;
}
<div id="page">
<input class="toggle-box" id="identifier-1" type="checkbox">
<label for="identifier-1">test</label>
<div>test</div>
<input class="toggle-box" id="identifier-2" type="checkbox">
<label for="identifier-2">test</label>
<div>test</div>
</div>
Any guidance on this matter would be greatly appreciated. Thank you in advance!