Jacky Tsang
Jacky Tsang

Dec 14, 2022

·
2 min read

Day156 — CSS card flip

Here records the thing I learned when I did a card flip in my project.

vanilla CSS

How To Create a Flip Card with CSS

The flip card container - set the width and height to whatever you want.

www.w3schools.com

Tailwind CSS

GitHub - Sridhar-C-25/animated3dflipcard_tailwind: animated 3D Flip Card Using Tailwind CSS

You can't perform that action at this time. You signed in with another tab or window. You signed out in another tab or…

github.com

The main

Add custom plugin

Adding backface-visibility? · Discussion #1686 · tailwindlabs/tailwindcss

You can't perform that action at this time. You signed in with another tab or window. You signed out in another tab or…

github.com

Problem encountered

The absolute layout is one pixel off from the relative layout because the column is calculated dynamically.

I have to set inset to -1 px to cover it up. It is less noticeable.

Another Tailwind CSS

CSS
HTML
Tailwind Css
Codingeveryday

--

--

More from Jacky Tsang

AboutHelpTermsPrivacy


Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Get unlimited access
Jacky Tsang

Jacky Tsang

64 Followers

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Text to speech