SVG-button
How do I make an svg-button?
What is a svg-button? How do you make a svg-button? This script and codes were developed by Томаш Хамлай on 11 November 2022, Friday.
SVG-button - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>SVG-button</title> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.css"> <link rel="stylesheet" href="css/style.css">
</head>
<body> <div class="bg"> <div class="container"> <svg class="svg-button" width="380" height="97" xmlns="http://www.w3.org/2000/svg"> <!-- width: 380px height: 97px; border-radius: 18px; --> <path class="bgc" d="M358 2 A 18 18, 0, 0, 0, 378 20 L 378 77 A 18 18, 0, 0, 0, 360 95 L 20 95 A 18 18, 0, 0, 0, 2 77 L 2 20 A 18 18, 0, 0, 0, 20 2 Z" /> <path d="M357 3 A 19 19, 0, 0, 0, 377 21 L 377 76 A 19 19, 0, 0, 0, 359 94 L 21 94 A 19 19, 0, 0, 0, 3 76 L 3 21 A 19 19, 0, 0, 0, 21 3 Z" fill="transparent" stroke="#8b9791" stroke-width="1" /> <path d="M355 5 A 21 21, 0, 0, 0, 375 23 L 375 74 A 21 21, 0, 0, 0, 357 92 L 23 92 A 21 21, 0, 0, 0, 5 74 L 5 23 A 21 21, 0, 0, 0, 23 5 Z" fill="transparent" stroke="#8c9891" stroke-width="1" /> <text class="btn-text" x="192" y="50.5" text-anchor="middle">Записаться</text> </svg> </div>
</div>
</body>
</html>
SVG-button - Script Codes CSS Codes
* { margin: 0;
}
html,
body { height: 100%;
}
.bg { min-height: 150px; min-width: 420px; height: 100%; width: 100%; position: relative; background-color: #093b4d;
}
.container { position: absolute; top: 0; right: 0; bottom: 0; left: 0; margin: auto; width: 380px; height: 97px;
}
.container .bgc { fill: #093b4d; stroke-width: 3; stroke: #ffe9cd; transition: fill 2s ease 500ms;
}
.container:hover .bgc { fill: #ffe9cd;
}
.container .btn-text { fill: #ffe9cd; font-family: 'Myriad Pro Condensed'; letter-spacing: 0.05em; dominant-baseline: central; line-height: 101px; stroke: none; font-size: 1.5em; transition: fill 2s ease 500ms;
}
.container:hover .btn-text { fill: #093b4d;
}
.svg-button { filter: drop-shadow(6px 15px 8px #000);
}
![SVG-button - Script Codes](http://shots.codepen.io/TomashKhamlai/pen/jVvXOM-512.jpg)
Developer | Томаш Хамлай |
Username | TomashKhamlai |
Uploaded | November 11, 2022 |
Rating | 3 |
Size | 2,677 Kb |
Views | 8,096 |
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 |
SVG Mascing Stretching AR rounded | 2,442 Kb |
Calculator | 3,212 Kb |
SVG-button | 2,677 Kb |
Teplomer.in.ua calculator | 8,541 Kb |
SVG Clipping Stretching | 2,684 Kb |
C | 1,269 Kb |
Calc.js | 3,338 Kb |
Firefox SVG Example | 1,935 Kb |
SVG Mascing Stretching AR | 2,384 Kb |
Penalty Calculator | 5,771 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 |
A Pen by aleen42 | Aleen42 | 11,473 Kb |
Personal Logo Animation | Lloydwheeler | 3,795 Kb |
Gears | Synvox | 3,278 Kb |
Image Stack Test SCSS | CalvinMorett | 2,799 Kb |
Blog Concept - Single Post | Marionebl | 9,603 Kb |
Button Option Group | Honchoman | 1,859 Kb |
BabyStore | Pablo-Ai | 3,807 Kb |
Whyutils | LeYvan | 3,752 Kb |
SCSS Simple Animated Drop-In | Danwarfel | 2,175 Kb |
BSP Dungeon Generation | Xgundam05 | 5,326 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!