Menu
Coddy logo textTech

Klasse 'view-more'

Lektion 19 von 31 im Kurs 3D-Karte | Front-end-Projekt von Coddy.

challenge icon

Aufgabe

Einfach

Targeten Sie die Klasse ‘view-more’ in ‘bottom’:

  1. Setzen Sie display auf Flex
  2. Setzen Sie align-items auf center.
  3. Setzen Sie justify-content auf flex-end.
  4. Setzen Sie die width auf 40%.
  5. Hinzufügen:

    transition: all 0.2s ease-in-out;

    Fügen Sie außerdem einen Hover-Effekt hinzu (Wichtig):

    .bottom .view-more:hover {
      transform: translate3d(0, 0, 10px);
    }

Probier es selbst

<!DOCTYPE html>
<html>
<head>
    <link rel="stylesheet" href="styles.css">
</head>
    <body>
        <!-- Write HTML code here -->
        <script src="script.js"></script>
    </body>
</html>

Alle Lektionen in 3D-Karte | Front-end-Projekt