Button Offset Mixin
How do I make an button offset mixin?
A Sass mixin for a link animation where a box slides up on hover.. What is a button offset mixin? How do you make a button offset mixin? This script and codes were developed by Thomas Vaeth on 24 September 2022, Saturday.
Button Offset Mixin - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Button Offset Mixin</title> <link rel='stylesheet prefetch' href='https://fonts.googleapis.com/css?family=Quattrocento:700'> <link rel="stylesheet" href="css/style.css">
</head>
<body> <a class="btn" href="#"> <div> <span>Hover Me</span> <span>Hover Me</span> </div>
</a>
</body>
</html>
Button Offset Mixin - Script Codes CSS Codes
body { margin: 0; padding: 0;
}
* { box-sizing: border-box;
}
body { 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; height: 100vh; width: 100%; font-family: "Quattrocento", serif; -webkit-font-smoothing: antialiased; background-color: #fff;
}
a { font-size: 2em; text-decoration: none;
}
.btn { position: relative; z-index: 1; display: inline-block; color: #494949;
}
.btn:after { content: ""; position: absolute; top: 3px; left: 3px; display: block; height: 100%; width: 100%; padding: 1px; border-right: 1px solid #494949; border-bottom: 1px solid #494949;
}
.btn:hover > * > *, .btn:active > * > *, .btn:focus > * > * { -webkit-transform: translate3d(0, -100%, 0); transform: translate3d(0, -100%, 0);
}
.btn > * { position: relative; border: 1px solid #494949; overflow: hidden;
}
.btn > * > * { display: block; padding: 0.5em 1em; -webkit-transition: -webkit-transform 0.6s cubic-bezier(0.16, 1.08, 0.38, 0.98); transition: -webkit-transform 0.6s cubic-bezier(0.16, 1.08, 0.38, 0.98); transition: transform 0.6s cubic-bezier(0.16, 1.08, 0.38, 0.98); transition: transform 0.6s cubic-bezier(0.16, 1.08, 0.38, 0.98), -webkit-transform 0.6s cubic-bezier(0.16, 1.08, 0.38, 0.98);
}
.btn > * > *:last-child { position: absolute; color: #494949; background-color: #feeaeb;
}
Developer | Thomas Vaeth |
Username | thomasvaeth |
Uploaded | September 24, 2022 |
Rating | 4.5 |
Size | 2,746 Kb |
Views | 36,432 |
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 |
Instafetch.js Example | 3,245 Kb |
Flexbox Grid Animation | 4,299 Kb |
Wikipedia Viewer | 2,549 Kb |
Calculator | 2,959 Kb |
Pokemon React | 35,628 Kb |
Local Weather | 3,137 Kb |
Wired Link Mixin | 2,718 Kb |
Personal Portfolio Webpage | 3,671 Kb |
Twitch.tv | 3,413 Kb |
Button Draw on Hover Mixin | 58,405 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 |
Hoi hoi | JohnTheCat | 7,248 Kb |
Donald Trump - The New Yorker | Agbales | 2,502 Kb |
Slider | Mohammed-fawzy | 2,634 Kb |
SVG email test v2.0 | M_J_Robbins | 2,090 Kb |
Super Discount | Orrinward | 3,225 Kb |
Myprofile | SoufianeAbid | 2,451 Kb |
Slider for stackoverflow | KKOKU | 3,222 Kb |
Basic template | Tomcat | 1,675 Kb |
Material design - button rainbow circle | Kunukn | 3,652 Kb |
Particle Motion trajectories | Sniejadlik | 5,899 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!