Skip to content

wellingguzman/CSS3-3D-Flip-Cards

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Testing 3D CSS Card Flip Effect

Testing how to implement a CSS3 Card Flip Effect.

HTML Structure

<div class="card-wrapper {class_effect}">
  <div class="card">
    <div class="front">
      <!-- FRONT SIDE -->
    </div>
    <div class="back">
      <!-- BACK SIDE -->
    </div>
  </div>
</div>

Class Effects

.flip-right
.flip-left
.flip-up
.flip-down
.flip-diagonal-right
.flip-diagonal-left
.flip-inverted-diagonal-right
.flip-inverted-diagonal-left

Flip Horizontal (Direction: Right)

<div class="card-wrapper flip-right">
  <div class="card">
    <div class="front">
      FRONT
    </div>
    <div class="back">
      BACK
    </div>
  </div>
</div>

Add the width and height of the card:

.card-wrapper, .card {
  width: 200px;
  height: 200px;
}

About

CSS3 3D Flip Cards Effect

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published