Menu
Coddy logo textTech

Klasa „view-more”

Lekcja 19 z 31 w kursie Karta 3D | Projekt front-endowy w Coddy.

challenge icon

Wyzwanie

Łatwy

Wybierz klasę ‘view-more’ w ‘bottom’:

  1. Ustaw display na Flex
  2. Ustaw align-items na center.
  3. Ustaw justify-content na flex-end.
  4. Ustaw szerokość na 40%.
  5. Dodaj:

    transition: all 0.2s ease-in-out;

    Dodaj również efekt najechania kursorem (Ważne):

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

Spróbuj swoich sił

<!DOCTYPE html>
<html>
<head>
    <link rel="stylesheet" href="styles.css">
</head>
    <body>
        <!-- Wpisz tutaj kod HTML -->
        <script src="script.js"></script>
    </body>
</html>

Wszystkie lekcje w sekcji Karta 3D | Projekt front-endowy

Poćwicz samodzielnie: Edytor online Web