SVG fill animation
How do I make an svg fill animation?
Simple test of svg fill animation. What is a svg fill animation? How do you make a svg fill animation? This script and codes were developed by Anthony on 04 January 2023, Wednesday.
SVG fill animation - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>SVG fill animation</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <svg class="product__star" height="20" viewBox="0 0 98 94" width="20"><polygon points="48 6 65 30 92 37 75 60 75 88 48 80 22 88 22 60 6 37 32 30" style="stroke-width:10"></polygon><clippath id="star"><polygon points="48 6 65 30 92 37 75 60 75 88 48 80 22 88 22 60 6 37 32 30" style="stroke-width:10"></polygon></clippath><g clip-path="url(#star)"><rect height="100%" width="100%"></rect></g></svg>
</body>
</html>
SVG fill animation - Script Codes CSS Codes
.product__star polygon { stroke: #818181; fill: transparent; transition: fill .3s ease-in-out;
}
.product__star rect { transform: translateY(100%); fill: #818181; transition: transform .3s ease-in-out;
}
.product__star:hover rect, .product__star.product__star--active rect { transform: translateY(0); fill: #818181;
}
Developer | Anthony |
Username | Tonours |
Uploaded | January 04, 2023 |
Rating | 3 |
Size | 2,203 Kb |
Views | 10,120 |
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 |
Simple form input effect | 3,080 Kb |
Send button effect | 2,754 Kb |
Remember MSN Wizz | 2,206 Kb |
Button hover | 2,867 Kb |
Background Animation | 4,554 Kb |
A Pen by Anthony | 7,238 Kb |
Bender edit profile | 4,818 Kb |
Fail vibration | 2,008 Kb |
Svg animation test | 2,338 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 |
3D-box | Parthviroja | 2,346 Kb |
TestTube CSS | EZPK | 2,710 Kb |
Fellowship of the Ring | Aussieyang | 2,639 Kb |
Wikipedia Viewer | Odylic | 2,333 Kb |
Header | Er40 | 1,542 Kb |
Addthis_button | Esambino | 1,691 Kb |
Fullscreen audio play button | 72 | 2,148 Kb |
Awesome Full Page Menu Nav | Ey_intuitive | 4,194 Kb |
Glitchy Text Effect | Kescoe | 2,208 Kb |
Confirm Close Of Foundation Reveal Modal | Winghouchan | 1,818 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!