start
start
  • .
  • Documentations
    • CSS
      • Dessins vectoriels, Bouton, cercles et objets géométriques
      • How To Create a Flip Card
      • Solar System
      • Dessins vectoriels, cercles et objets géométriques (2)
      • CSS Animation
      • Liste complète de tous les sélecteurs CSS
      • Galaxie
      • Variable Font parameters
      • Mask SVG CSS
      • Texte dégradé avec CSS
      • Stroke Contour de texte avec CSS
      • Sélecteurs CSS :has, :not, :is et :where
    • PHP and MYSQL
      • Déplacement et remplacent de chaine de caractère en PHP
      • fonction pour supprimer les espaces et autres caractères spéciaux
    • Processing
      • Fill and Stroke Gradient
    • T3, T4, Dev and Code
      • RGPD Joomla Natif
      • Add the Page Class anywhere on the page
      • Récupérer une valeur depuis Json
      • RS Form - du contenu en vrac en bas de page
      • Vendre des produits avec RS FORM
      • Auto populate a list from field table
      • RS Form - Intégration avec Acymailoing
      • RS Form - Masque de numéro ou de champs (formatage de champ)
      • Intégration RSForm avec Zoom
      • Change Logo when langage change
      • T4 Header - Meta
      • Joomla Dev Tutorial
      • How To Add Search & Filtering in Joomla Component
      • Put Heading to masthead
      • Random sur une boucle
      • Page Contact ERROR
      • How RokSprocket Uses Custom Themes
      • Récupérer le titre de l'article depuis un formulaire RSform
      • Gérer 2 Owl carrousel sur la même page
      • Comment insérer un acordéon bootstrap dyamiquement Dans une boucle
    • SSH, SSL, LINUX
      • Commandes SSH fréquemment utilisées et leur usage
      • Cron Task CLI
      • Cron task CLI - 2
      • Vider Cache et libérer espace sur PLESK
      • How to upgrade MariaDB 10.0 to 10.1 on CentOS 7
      • Générer Certificat + key a partir de PFX
      • Les commandes de base en console linux
      • Générer certificat .CSR + .KEY avec SSL (serveur Gandi)
      • Gérez les redirection http https www et sans www
      • DKIM, SPF et DMARC
      • CDN Cloudflare
      • Metadata Tool pour Shema.org (Social média)
      • outils d'analyse et optimisation
    • Modules
      • Create ACM module that make change the Logo when langage change
      • JA MAsthead dont work after Joomla 5.2 update
      • ACM module Incrementation +1
      • Module ACM, utiliser Slider Bootstrap - ajouter une boucle
      • Ordonner les groupe de champs ACM
      • Place a module above and below the component
      • Créer un module Joomla (Timeline)
      • Module - Appel dans le code et le template
      • Gtranslate (conflit mootools / problème de traduction)
      • Créer un select list dans JACM
      • Call a menu Item from ACM module JACM
    • Fields
      • Appeler un Custom field depuis un module
      • Insérer une valeur (à partir d'un radio) dans la propriété d'un élément html
      • Add Subform - repetables on Joomla 5
      • adding joomla custom fields with t3 Framework
      • How to use custom fields in Joomla 3 ?
      • Custom fields don't render plugin shortcode
      • Load custom fields in modules
      • Aller plus loin avec les Custom Fields de Joomla! 3.7
      • Les Champs Personnalisés (Custom Fields) dans Joomla!
      • Ajouter une boucle dans un article Joomla pour utiliser un "Slider Boostrap"
      • Traduire champs répétable
      • Appeler les Fields Joomla dans category (J4)
      • Differents solutions for joomla fields (inside module / inside template / override)
      • Accordéon Boostrap dans une page joomla avec repeteable fields
      • Insérer la valeur d'un champ joomla "joomla field" dans php
    • SEO - Crawling - IA
      • 28 idées SEO sur le plan technique
      • Robot.txt - Empêcher les IA de crawler le site
      • Empêcher les IA de crawler via .htaccess
      • TDM Reservation Protocol (TDMRep)
      • Display Review from Google review on website
      • Fix microdata for the last breadcrumb item
      • Rewrite sitemap url to sitemap.xml
      • LCP - CLS and Google Speed
    • Other
      • Synology Drive - Synchronisation à la demande ?
      • Notepad édition avancée
      • Comment protéger un répertoire par mot de passe
      • MySQL delete FROM TABLE
    • October
      • October Videos tutorials
      • October Official tutorials and documentation
    • Librairies / templates / JS
      • Splash page
      • AOS CSS Scrolling effect
      • Add class with jQuery
      • Change HTML Element with JS
      • Hover CSS
    • Optimisation - SEO - Structured Data
      • F.A.Q. données structurées
      • Temoignages données structurées

CSS

How To Create a Flip Card

Details
Category: CSS

https://www.w3schools.com/howto/howto_css_flip_card.asp

Step 1- Add HTML:

<div class="flip-card">
  <div class="flip-card-inner">
    <div class="flip-card-front">
      <img src="/img_avatar.png" alt="Avatar" style="width:300px;height:300px;">
    </div>
    <div class="flip-card-back">
      <h1>John Doe</h1>
      <p>Architect & Engineer</p>
      <p>We love that guy</p>
    </div>
  </div>
</div>

 

Step 2- Add CSS:

/* The flip card container - set the width and height to whatever you want. We have added the border property to demonstrate that the flip itself goes out of the box on hover (remove perspective if you don't want the 3D effect */
.flip-card {
  background-color: transparent;
  width: 300px;
  height: 200px;
  border: 1px solid #f1f1f1;
  perspective: 1000px; /* Remove this if you don't want the 3D effect */
}

/* This container is needed to position the front and back side */
.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.8s;
  transform-style: preserve-3d;
}

/* Do an horizontal flip when you move the mouse over the flip box container */
.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}

/* Position the front and back side */
.flip-card-front, .flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden; /* Safari */
  backface-visibility: hidden;
}

/* Style the front side (fallback if image is missing) */
.flip-card-front {
  background-color: #bbb;
  color: black;
}

/* Style the back side */
.flip-card-back {
  background-color: dodgerblue;
  color: white;
  transform: rotateY(180deg);
}

 

 

 

 

 

 

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10

Page 2 of 11