Sass border drawing mixin
How do I make an sass border drawing mixin?
A mixin from my other pen, CSS border transitions.See also another effect drawing two borders at once.. What is a sass border drawing mixin? How do you make a sass border drawing mixin? This script and codes were developed by Giana on 09 December 2022, Friday.
Sass border drawing mixin - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Sass border drawing mixin</title> <link href="https://fonts.googleapis.com/css?family=Roboto+Slab:700" rel="stylesheet"> <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> <button class="btn draw-outline">Draw button</button>
</body>
</html>
Sass border drawing mixin - Script Codes CSS Codes
.draw-outline { box-shadow: inset 0 0 0 4px #c994bd; color: #c994bd; -webkit-transition: color 0.25s 0.125s; transition: color 0.25s 0.125s; position: relative;
}
.draw-outline::before, .draw-outline::after { border: 0 solid transparent; box-sizing: border-box; content: ''; pointer-events: none; position: absolute; width: 0; height: 0;
}
.draw-outline::before { top: 0; right: 0;
}
.draw-outline::after { left: 0; bottom: 0;
}
.draw-outline::after { border-top-width: 4px; border-left-width: 4px;
}
.draw-outline::before { border-bottom-width: 4px; border-right-width: 4px;
}
.draw-outline:hover { color: #90f183;
}
.draw-outline:hover::before, .draw-outline:hover::after { border-color: #90f183; -webkit-transition: border-color 0s, height 0.25s, width 0.25s; transition: border-color 0s, height 0.25s, width 0.25s; width: 100%; height: 100%;
}
.draw-outline:hover::before { -webkit-transition-delay: 0s, 0s, 0.25s; transition-delay: 0s, 0s, 0.25s;
}
.draw-outline:hover::after { -webkit-transition-delay: 0.5s, 0.5s, 0.75s; transition-delay: 0.5s, 0.5s, 0.75s;
}
.btn { background: none; border: none; cursor: pointer; line-height: 1.5; font: 700 1.2rem 'Roboto Slab', sans-serif; padding: 1em 2em; letter-spacing: 0.05rem;
}
.btn:focus { outline: 2px dotted #55d7dc;
}
body { background: #1a1f25; display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-align: center; -ms-flex-align: center; align-items: center; -webkit-box-pack: center; -ms-flex-pack: center; justify-content: center; min-height: 100vh;
}
Developer | Giana |
Username | giana |
Uploaded | December 09, 2022 |
Rating | 4.5 |
Size | 3,010 Kb |
Views | 22,264 |
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 |
Stars | 2,970 Kb |
WordPress Site Map | 3,459 Kb |
JavaScript calculator | 5,853 Kb |
Fading text with CSS blend modes | 3,305 Kb |
Galaxy | 2,744 Kb |
FreeCodeCamp homepage redesign | 13,958 Kb |
Random animated pattern | 6,609 Kb |
CSS box shadow particles v3 | 67,433 Kb |
Cyber Cells | 3,565 Kb |
Fully Functional Sentient CLI | 4,534 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 bit of elegance | Hackthevoid | 9,095 Kb |
Wikipedia Viewer | Thomasvaeth | 2,549 Kb |
Gears | Synvox | 3,278 Kb |
Cool Page Split Effect | Anthonyadamski | 6,128 Kb |
Animate a paper plane along an SVG path, looking ahead | PotatoDie | 3,734 Kb |
Twitch | SarahDunlap | 2,937 Kb |
A Pen by Xand0r | Xand0r | 1,928 Kb |
Portfolio Page | HuffmanJ25 | 5,240 Kb |
Loading animation | Codeams | 2,408 Kb |
Twinkling Stars | Ripley6811 | 2,750 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!