Search
 
SCRIPT & CODE EXAMPLE
 

CSS

CSS Flip Animation

/* entire container, keeps perspective */
.flip-container {
	perspective: 1000px;
}
	/* flip the pane when hovered */
	.flip-container:hover .flipper, .flip-container.hover .flipper {
		transform: rotateY(180deg);
	}

.flip-container, .front, .back {
	width: 320px;
	height: 480px;
}

/* flip speed goes here */
.flipper {
	transition: 0.6s;
	transform-style: preserve-3d;

	position: relative;
}

/* hide back of pane during swap */
.front, .back {
	backface-visibility: hidden;

	position: absolute;
	top: 0;
	left: 0;
}

/* front pane, placed above back */
.front {
	z-index: 2;
	/* for firefox 31 */
	transform: rotateY(0deg);
}

/* back, initially hidden pane */
.back {
	transform: rotateY(180deg);
}
Comment

card flip css

.flipping-card-item-side-back{
    color: #000;
    transform: rotateY(180deg);
}


.flipping-card-item-wrapper:hover .flipping-card-item-side-front{
    transform: rotateY(-180deg);
}

.flipping-card-item-wrapper:hover .flipping-card-item-side-back{
    transform: rotateY(0);
}

.flipping-card-item-img{
    width: 100%;
    height: 100%;
    background-size: cover;
    background-blend-mode: color;
}

.flipping-card-back-wrapper{
    font-weight: 200;
    position: relative;
    top: 25%;
    left: 0;
    margin: 2rem;
    text-align: center;
}

.flipping-card-back-wrapper__btn {
    margin-top: 2rem;
    padding: .7rem;
    text-align: center;
    color: #ffffff;
    border: 0;
    background-image: linear-gradient(to right bottom, #ffa41b, #ff5151);
    transition: all .5s;
}

.flipping-card-back-wrapper__btn:hover {
    background-image: none;
    color: #ffa41b;
    border: 1px solid #ffa41b;
}
Comment

card flip html

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="en">
    <head>
        <meta http-equiv="content-type" content="text/html; charset=utf-8">
        <title>html-css-flipping-cards</title>
        <link href="https://fonts.googleapis.com/css?family=Rubik&display=swap" rel="stylesheet">
        <link rel="stylesheet" href="css/style.css">

    </head>
    <body>

    <section class="flipping-cards">
        <div class="flipping-card-wrapper">
            <div class="flipping-card-item-wrapper">
                <div class="flipping-card-item-side flipping-card-item-side-front">
                    <img src="/img/html-css-flipping-card-1.png" alt="" class="flipping-card-item-img">
                </div>
                <div class="flipping-card-item-side flipping-card-item-side-back">
                    <div class="flipping-card-back-wrapper">
                        <p>Hello I am learning how to create flipping cards using HTML & CSS, will you mind joining me?</p>
                        <button class="flipping-card-back-wrapper__btn">Read More</button>
                    </div>
                </div>
            </div>

            <div class="flipping-card-item-wrapper">
                <div class="flipping-card-item-side flipping-card-item-side-front">
                    <img src="/img/html-css-flipping-card-2.png" alt="" class="flipping-card-item-img">
                </div>
                <div class="flipping-card-item-side flipping-card-item-side-back">
                    <div class="flipping-card-back-wrapper">
                        <p>Hello I am learning how to create flipping cards using HTML & CSS, will you mind joining me?</p>
                        <button class="flipping-card-back-wrapper__btn">Read More</button>
                    </div>
                </div>
            </div>

            <div class="flipping-card-item-wrapper">
                <div class="flipping-card-item-side flipping-card-item-side-front">
                    <img src="/img/html-css-flipping-card-3.png" alt="" class="flipping-card-item-img">
                </div>
                <div class="flipping-card-item-side flipping-card-item-side-back">
                    <div class="flipping-card-back-wrapper">
                        <p>Hello I am learning how to create flipping cards using HTML & CSS, will you mind joining me?</p>
                        <button class="flipping-card-back-wrapper__btn">Read More</button>
                    </div>

                </div>
            </div>
        </div>
        <p class="copyright">© 2020, all rights reserved, designed by: Emmanuel Etukudo</p>
    </section>


    </body>
</html>
Comment

PREVIOUS NEXT
Code Example
Css :: flex basis 
Css :: rainbow text shadow animation 
Css :: zoom in to picture on html css 
Css :: border radius color html 
Css :: css vertical align with flexbox 
Css :: how fixed image at top 
Css :: variables css 
Css :: translate in 3d css 
Css :: display flex overflow hidden slider 
Css :: how to hover div in css 
Css :: how to insert icons pseudo content 
Css :: css transparent background behind text 
Css :: comentarios en archivo scss 
Css :: Responsive Web Design with HTML5 and CSS 
Css :: css selector last child 
Css :: login page ui html css 
Css :: bootstrap-scss github 
Css :: circle percentage css 
Css :: liste commandes disponibles linux 
Css :: operador css contain attr 
Css :: css changer la couleur de la sélection 
Css :: memebuat html dan css login instagram 
Css :: css padding 4 values 
Css :: css color word multiple colors 
Css :: position absolute above everything 
Css :: div position by default 
Css :: flex box 
Css :: scss background color 
Css :: restore mySQL database from .bz2 
Css :: menu animation 
ADD CONTENT
Topic
Content
Source link
Name
4+5 =