Flip using CSS
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 - 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"); });
});
Developer | Tauseef |
Username | tmjam |
Uploaded | September 07, 2022 |
Rating | 3 |
Size | 1,959 Kb |
Views | 52,624 |
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!
Name | Size |
Pulse loader | 1,757 Kb |
Responsive Layout using bootstrap | 3,131 Kb |
A Pen by Tauseef | 2,937 Kb |
Test | 3,456 Kb |
Shopping Cart with HTML5 Drag Drop | 2,336 Kb |
Single page site | 2,873 Kb |
Responsive email template without media queries | 1,981 Kb |
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!
Name | Username | Size |
Heartbeat | Apetrov | 2,079 Kb |
Rotate Demo | Agelber | 3,061 Kb |
Simple CSS loader. | Cabrera | 2,574 Kb |
SlideDown FixedMenu | Mp_graphic | 5,602 Kb |
Fullscreen Parallax | Bassta | 3,313 Kb |
AngularJS Animated Todo List | Ehaase | 2,975 Kb |
Menu | Vivi_Lai | 1,210 Kb |
Mandelbrot Fractal | _Billy_Brown | 2,706 Kb |
RequestAnimationFrame | Martin-banks | 2,541 Kb |
Twitch Live Channels | Inkblotty | 4,956 Kb |
Surf anonymously, prevent hackers from acquiring your IP address, send anonymous email, and encrypt your Internet connection. High speed, ultra secure, and easy to use. Instant setup. Hide Your IP Now!