Flip using CSS

Developer
Size
1,959 Kb
Views
52,624

How do I make an flip using css?

Trying css transforms to create a flip effect. What is a flip using css? How do you make a flip using css? This script and codes were developed by Tauseef on 07 September 2022, Wednesday.

Flip using CSS Previews

Flip using CSS - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Flip using CSS</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <section class="container"> <div id="card"> <figure class="front">Page1</figure> <figure class="back">Page2</figure> </div>
</section>
<a href="#">Flip it</a> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script> <script src="js/index.js"></script>
</body>
</html>

Flip using CSS - Script Codes CSS Codes

.container{ width: 250px; height: 250px; margin: 40px auto; position:relative; border: 1px solid #999; perspective: 600px; -webkit-perspective: 600px;
}
#card{ width: 100%; height: 100%; position:absolute; -webkit-transition: -webkit-transform 1s; transition: transform 1s; -webkit-transform-style: preserve-3d; transform-style: preserve-3d; backgroud: red;
}
#card figure{ height: 250px; widht: 250px; position: absolute; display:block; margin: 0px; -webkit-backface-visibility: hidden; backface-visibility: hidden;
}
#card .front{ background: yellow;
}
#card .back{ background: blue; -webkit-transform: rotateY(180deg); transform: rotateY(180deg);
}
#card.fliped{ -webkit-transform: rotateY(180deg); transform: rotateY(180deg);
}

Flip using CSS - Script Codes JS Codes

$(document).ready(function(){ $("a").click(function(){ $('#card').toggleClass("fliped"); });
});
Flip using CSS - Script Codes
Flip using CSS - Script Codes
Home Page Home
Developer Tauseef
Username tmjam
Uploaded September 07, 2022
Rating 3
Size 1,959 Kb
Views 52,624
Do you need developer help for Flip using CSS?

Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!

Tauseef (tmjam) Script Codes
Create amazing marketing copy with AI!

Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!