Single element heart

Developer
Size
2,602 Kb
Views
50,600

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 Previews

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; }
}
Single element heart - Script Codes
Single element heart - Script Codes
Home Page Home
Developer Shankar Cabus
Username shankarcabus
Uploaded June 24, 2022
Rating 3
Size 2,602 Kb
Views 50,600
Do you need developer help for Single element heart?

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!

Shankar Cabus (shankarcabus) 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!