Menu
Coddy logo textTech

Input

Lesson 16 of 17 in Coddy's Image Accordion | Front-end project course.

challenge icon

Challenge

Easy

Target input tag: 

  1. 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>

All lessons in Image Accordion | Front-end project