Klasa „view-more”
Lekcja 19 z 31 w kursie Karta 3D | Projekt front-endowy w Coddy.
Wyzwanie
ŁatwyWybierz klasę ‘view-more’ w ‘bottom’:
- Ustaw display na Flex
- Ustaw align-items na center.
- Ustaw justify-content na flex-end.
- Ustaw szerokość na 40%.
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