WEBLEB
Accueil
Éditeur
Connexion
Pro
Français
English
Français
Español
Português
Deutsch
Italiano
हिंदी
Films de cartes CSS pures 3D
787
AmirAliAkrami
Ouvrir dans l'éditeur
Publiez votre code
Recommandé
17 April 2025
Un code de Mete Han
2 February 2024
Cartes de réseaux sociaux CSS
24 May 2024
Animations de cartes
HTML
Copy
CSS
Copy
.card { width: calc(300px / 1.5); height: 300px; position: relative; display: flex; justify-content: center; align-items: flex-end; padding: 0 36px; perspective: 2500px; margin-left: 15px; margin-bottom: 8px; } .cover-image { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; } .wrapper { transition: all 0.5s; position: absolute; width: 100%; z-index: -1; } .wrapper::before, .wrapper::after { content: ""; opacity: 0; width: 100%; height: 80px; transition: all 0.5s; position: absolute; left: 0; } .wrapper::before { top: 0; height: 100%; background-image: linear-gradient( to top, transparent 46%, rgba(12, 13, 19, 0.5) 68%, rgba(12, 13, 19) 97% ); } .wrapper::after { bottom: 0; opacity: 1; background-image: linear-gradient( to bottom, transparent 46%, rgba(12, 13, 19, 0.5) 68%, rgba(12, 13, 19) 97% ); } .card:hover .wrapper::before, .wrapper::after { opacity: 1; } .card:hover .wrapper::after { height: 120px; } .title { width: 100%; transition: transform 0.5s; } .card:hover .title { transform: translate3d(0%, -50px, 100px); } .character { height: 285px; opacity: 0; transition: all 0.5s; position: absolute; z-index: -1; } .card:hover .character { opacity: 1; transform: translate3d(0%, -2%, 100px); } .bartar-seton { display: flex; overflow-x: auto; white-space: nowrap; scrollbar-width: thin; padding: 150px 0 27px; }
JS
Copy
/* Replace with your JS Code (Leave empty if not needed) */