Wipe Hover Effect
How do I make an wipe hover effect?
Hover button to see the effect.. What is a wipe hover effect? How do you make a wipe hover effect? This script and codes were developed by Travis Arnold on 12 September 2022, Monday.
Wipe Hover Effect - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Wipe Hover Effect</title> <script src="https://s.codepen.io/assets/libs/modernizr.js" type="text/javascript"></script> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.css"> <style> /* NOTE: The styles were added inline because Prefixfree needs access to your styles and they must be inlined if they are on local disk! */ * { box-sizing: border-box;
}
body { padding-top: 100px; text-align: center; background: #F1F1F2;
}
[data-wipe] { display: inline-block; padding: 12px 18px; text-decoration: none; position: relative; border: 2px solid #445561; border-radius: 3px; text-transform: uppercase; letter-spacing: 0.1em; text-align: left; color: #445561; overflow: hidden;
}
[data-wipe]:before, [data-wipe]:after { content: attr(data-wipe); padding-top: inherit; padding-bottom: inherit; white-space: nowrap; position: absolute; top: 0; overflow: hidden; color: #F1F1F2; background: #445561;
}
[data-wipe]:before { left: 0; text-indent: 18px; width: 0;
}
[data-wipe]:after { padding-left: inherit; padding-right: inherit; left: 100%; text-indent: calc(-100% - 36px); transition: 0.2s ease-in-out;
}
[data-wipe]:hover:before { width: 100%; transition: width 0.2s ease-in-out;
}
[data-wipe]:hover:after { left: 0; text-indent: 0; transition: 0s 0.2s ease-in-out;
} </style> <script src="https://cdnjs.cloudflare.com/ajax/libs/prefixfree/1.0.7/prefixfree.min.js"></script>
</head>
<body> <a href="#" class="btn" data-wipe="Wipe Hover Effect">Wipe Hover Effect</a> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script>
</body>
</html>
Wipe Hover Effect - Script Codes CSS Codes
* { box-sizing: border-box;
}
body { padding-top: 100px; text-align: center; background: #F1F1F2;
}
[data-wipe] { display: inline-block; padding: 12px 18px; text-decoration: none; position: relative; border: 2px solid #445561; border-radius: 3px; text-transform: uppercase; letter-spacing: 0.1em; text-align: left; color: #445561; overflow: hidden;
}
[data-wipe]:before, [data-wipe]:after { content: attr(data-wipe); padding-top: inherit; padding-bottom: inherit; white-space: nowrap; position: absolute; top: 0; overflow: hidden; color: #F1F1F2; background: #445561;
}
[data-wipe]:before { left: 0; text-indent: 18px; width: 0;
}
[data-wipe]:after { padding-left: inherit; padding-right: inherit; left: 100%; text-indent: calc(-100% - 36px); transition: 0.2s ease-in-out;
}
[data-wipe]:hover:before { width: 100%; transition: width 0.2s ease-in-out;
}
[data-wipe]:hover:after { left: 0; text-indent: 0; transition: 0s 0.2s ease-in-out;
}
Developer | Travis Arnold |
Username | souporserious |
Uploaded | September 12, 2022 |
Rating | 4.5 |
Size | 2,975 Kb |
Views | 28,336 |
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 |
Animated heading using css and javascript | 3,516 Kb |
React Paper Ripple | 5,312 Kb |
React Measure Demo | 3,718 Kb |
Trix Custom Toolbar | 3,356 Kb |
Expose - a responsive jQuery modal plugin | 3,754 Kb |
Hamburglar | 3,457 Kb |
Segmented Control | 3,497 Kb |
Success Message | 3,351 Kb |
Parallax Mouse Move | 2,565 Kb |
React Circle Media Player | 5,566 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 |
Vertically rotating text with CSS | Nopr | 2,141 Kb |
Scroll to top button | DominicFrancois | 3,743 Kb |
A Pen by Ben Babics | Benbabics | 2,957 Kb |
FCC Portfolio | Cmwebby | 4,304 Kb |
Working around OS X Dynamic Scrollbars | Jrjenk | 2,279 Kb |
Exploring css spinners | Akagr | 3,569 Kb |
Rotate Demo | Agelber | 3,061 Kb |
Mobile Sub Menu Concept | Berdejitendra | 2,790 Kb |
RWD Conversion Practice | Jxqr97 | 2,743 Kb |
Drawing a Terminal with CSS | Lachlanjc | 3,185 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!