Material Design Card Flip - Direction Aware
How do I make an material design card flip - direction aware?
:). What is a material design card flip - direction aware? How do you make a material design card flip - direction aware? This script and codes were developed by Elmer Balbin on 22 January 2023, Sunday.
Material Design Card Flip - Direction Aware - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Material Design Card Flip - Direction Aware</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <div class="card-container"> <div class="left"></div> <div class="right"></div> <div class="card"> <div class="front"> <div class="cover"></div> <div class="photo"> <img src="https://image.ibb.co/dSrCS5/lame_224x224.jpg"> </div> <h3 class="name">Elmer Balbin</h3> <p class="role">Front-End Web Developer</p> <div class="supporting_text"> <span>I love to code and make stuff fly and spin.</span> </div> <div class="mdl-card__actions mdl-card--border mdl-typography--text-center"> <button class="mdl-button mdl-js-button mdl-button--raised mdl-button--colored mdl-js-ripple-effect">Connect</button> </div> </div> <div class="back"> <ul class="icons"> <li><i class="mdi mdi-twitter"><span>elmzarnsi</span></i></li> <li><i class="mdi mdi-linkedin"><span>elmzarnsi</span></i></li> <li><i class="mdi mdi-google-plus"><span>+ElmerBalbinJr</span></i></li> <li><i class="mdi mdi-web"><span>elmerbalbin.me</span></i></li> </ul> </div> </div>
</div>
</body>
</html>
Material Design Card Flip - Direction Aware - Script Codes CSS Codes
@import url("//cdn.materialdesignicons.com/1.9.32/css/materialdesignicons.min.css");
@import url("https://fonts.googleapis.com/css?family=Roboto:300,400");
@import url("https://code.getmdl.io/1.3.0/material.indigo-blue.min.css");
html { background: #222;
}
* { box-sizing: border-box;
}
.card-container { position: absolute; width: 300px; height: 380px; top: 50%; left: 50%; transform: translateX(-50%) translateY(-50%); perspective: 1000px;
}
.card-container .left { position: absolute; top: 0; left: 0; width: 50%; height: 100%; z-index: 2;
}
.card-container .left:hover { width: 100%; z-index: 3;
}
.card-container .right { position: absolute; top: 0; right: 0; width: 50%; height: 100%; z-index: 2;
}
.card-container .right:hover { width: 100%; z-index: 3;
}
.card-container .card { position: absolute; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .5s ease-in-out;
}
.card-container .left:hover ~ .card { transform: rotateY(-180deg);
}
.card-container .right:hover ~ .card { transform: rotateY(180deg);
}
.card .front, .card .back { position: absolute; top: 0; left: 0; width: 100%; height: 100%; font-family: "Roboto", sans-serif; color: #444; -webkit-backface-visibility: hidden; backface-visibility: hidden; box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 1px 5px 0 rgba(0, 0, 0, 0.12);
}
.card .front { background: #fff; z-index: 2;
}
.card .back { background: #466599; z-index: 3; transform: rotateY(180deg);
}
.card .front .cover { width: 100%; height: 150px; background: url("https://image.ibb.co/jbG1LQ/pexels_photo_167276.jpg") center -220px;
}
.card .front .photo { margin-top: -45px;
}
.card .front .photo img { display: block; margin: auto; width: 90px; -webkit-border-radius: 50%; border-radius: 50%;
}
.card .front .name { margin: 10px auto 5px; font-size: 1.5em; font-weight: 300; line-height: 1; text-align: center;
}
.card .front .role { margin: 0; text-align: center; color: #999;
}
.card .front .supporting_text { margin: 15px auto 20px; padding: 8px; text-align: center;
}
.card .back { display: flex; align-items: center; justify-content: center;
}
.card .back .icons { padding: 0; list-style: none;
}
.card .back .icons li { margin: 20px 0;
}
.card .back .icons li i.mdi { color: #FFF; font-size: 2em; line-height: 1; transition: all .3s ease;
}
.card .back .icons li i.mdi span { font-style: normal; font-size: 70%; top: -3px; position: relative; margin-left: 8px;
}
Developer | Elmer Balbin |
Username | elmzarnsi |
Uploaded | January 22, 2023 |
Rating | 4 |
Size | 3,689 Kb |
Views | 4,048 |
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 |
Direction Aware Tiles using clip-path Pure CSS | 3,904 Kb |
Material Design Input Placeholder | 1,925 Kb |
Simple hover color slide effect | 1,650 Kb |
Some button hover effects | 1,833 Kb |
Self-Caricature SVG Animation | 5,943 Kb |
Collapsed div borders using CSS3 box-shadow | 1,490 Kb |
My Profile CSS | 3,355 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 |
CSS background-size - GSAP | Jonathan | 2,209 Kb |
A Pen by James Podles | Jpod | 2,656 Kb |
Voting App - register | MatheusLima92 | 1,948 Kb |
Blog | Rottingroom | 1,430 Kb |
CSSOff 2013 Submission | Codewunder | 14,766 Kb |
UI Challenge - Budget Selector | AgentRR007 | 3,547 Kb |
Css3 loader | Clknap | 2,391 Kb |
Boxes | H3l1um | 2,563 Kb |
Modal Dialog | Gigaleet | 2,251 Kb |
Flower expansion | Sreucherand | 3,425 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!