Single element heart
How do I make an single element heart?
Animated heart made in pure CSS . What is a single element heart? How do you make a single element heart? This script and codes were developed by Shankar Cabus on 24 June 2022, Friday.
Single element heart - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Single element heart</title> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/meyer-reset/2.0/reset.min.css"> <style> /* NOTE: The styles were added inline because Prefixfree needs access to your styles and they must be inlined if they are on local disk! */ .heart { position: absolute; border: 4.1em solid transparent; border-top-color: #E01B4C; height: 0; width: 0; left: calc(50% - 3em);
}
.heart:after, .heart:before { background: #E01B4C; content: ""; left: -4.5em; position: absolute; height: 6em; width: 5em; border-radius: 2.5em; top: -8.5em; transform: rotate(-45deg);
}
.heart:after { left: -0.5em; transform: rotate(45deg);
}
body { padding-top: 150px; background: #e6cfd9; font-size: 16px; -webkit-animation: beat infinite linear 0.8s;
}
@-webkit-keyframes beat { 0% { zoom: 1; } 20% { zoom: 1.2; } 25% { zoom: 1.1; } 45% { zoom: 1.3; }
} </style> <script src="https://cdnjs.cloudflare.com/ajax/libs/prefixfree/1.0.7/prefixfree.min.js"></script>
</head>
<body> <div class="heart"></div>
</body>
</html>
Single element heart - Script Codes CSS Codes
.heart { position: absolute; border: 4.1em solid transparent; border-top-color: #E01B4C; height: 0; width: 0; left: calc(50% - 3em);
}
.heart:after, .heart:before { background: #E01B4C; content: ""; left: -4.5em; position: absolute; height: 6em; width: 5em; border-radius: 2.5em; top: -8.5em; transform: rotate(-45deg);
}
.heart:after { left: -0.5em; transform: rotate(45deg);
}
body { padding-top: 150px; background: #e6cfd9; font-size: 16px; -webkit-animation: beat infinite linear 0.8s;
}
@-webkit-keyframes beat { 0% { zoom: 1; } 20% { zoom: 1.2; } 25% { zoom: 1.1; } 45% { zoom: 1.3; }
}
Developer | Shankar Cabus |
Username | shankarcabus |
Uploaded | June 24, 2022 |
Rating | 3 |
Size | 2,602 Kb |
Views | 50,600 |
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 |
Conical gradient in pure CSS | 3,548 Kb |
Vertical align | 1,952 Kb |
Color Picker in Pure CSS | 5,072 Kb |
JusBrasil logo single element | 2,542 Kb |
Guest Post on CSS-Tricks | 6,425 Kb |
Front in Aracaju Logo Pure CSS | 2,581 Kb |
Super Mario CSS | 8,335 Kb |
Flat Progress Bar CSS e HTML | 3,296 Kb |
Compass pure CSS | 4,350 Kb |
Transformers Cube with device orientation | 2,616 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 |
Flexbox playground | Enxaneta | 5,418 Kb |
A Pen by Paul Sullivan | Pwsm50 | 2,349 Kb |
Guidepopup | Wooljs | 3,747 Kb |
Particle Motion trajectories | Sniejadlik | 5,899 Kb |
Cars going | Netoguimaraes | 1,699 Kb |
Personal Website Redesign v2.0 | DevItWithDavid | 5,168 Kb |
Commuter Line Tokyu 8500 | Pedox | 7,031 Kb |
A Pen by Brendan Skousen | Bskousen | 2,954 Kb |
Flying Bee | Pwsm50 | 3,711 Kb |
Css color for svg | Ademilter | 2,392 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!