Menu
Coddy logo textTech

Class card

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

challenge icon

Challenge

Easy

Target the class ‘card’:

  1. Set the width to 130 pixels. 
  2. Set background-size to cover
  3. Set cursor to pointer
  4. Set overflow to hidden.
  5. Set the border radius to 25 pixels. 
  6. Set the margin to 0 from top-bottom and 10 pixels from left-right
  7. Add this transition and box-shadow at the end:

    transition: .6s cubic-bezier(.28,-0.03,0,.99); box-shadow: 0px 10px 30px -5px rgba(82, 9, 9, 0.8);

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