Input
Lesson 16 of 17 in Coddy's Image Accordion | Front-end project course.
Challenge
EasyTarget input tag:
- Set the display to none.
Important: Add this code at the end to make transition text appear after clicking on any input, and the label will take the width after a click:
input:checked + label {
width: 600px;
}
input:checked + label .description {
opacity: 1 !important;
transform: translateY(0) !important;
}Try it yourself
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<!-- Write HTML code here -->
<script src="script.js"></script>
</body>
</html>