Sass border drawing mixin

Developer
Size
3,010 Kb
Views
22,264

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 Previews

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;
}
Sass border drawing mixin - Script Codes
Sass border drawing mixin - Script Codes
Home Page Home
Developer Giana
Username giana
Uploaded December 09, 2022
Rating 4.5
Size 3,010 Kb
Views 22,264
Do you need developer help for Sass border drawing mixin?

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!

Giana (giana) Script Codes
Create amazing SEO content 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!