Sliding link on hover
How do I make an sliding link on hover?
What is a sliding link on hover? How do you make a sliding link on hover? This script and codes were developed by Deyan Dimitrov on 13 November 2022, Sunday.
Sliding link on hover - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Sliding link on hover</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <section class="container"> <h1>Sliding text on hover animation</h1> <li data-hover="read me"><a href="">Link me</a></li> <li data-hover="read me"><a href="">Link me</a></li> <li data-hover="read me"><a href="">Link me</a></li>
</section>
</body>
</html>
Sliding link on hover - Script Codes CSS Codes
@import url(https://fonts.googleapis.com/css?family=Open+Sans:300,400,800);
a, li { display:block;
}
*, *:before, *:after{ box-sizing: border-box; padding: 0; margin: 0; font: 300 1em/1.5 'Open Sans', 'Helvetica Neue', Arial, sans-serif; text-decoration: none; color: #111;
}
html, body{background: rgb(236, 240, 241);} section.container{ width: 500px; margin: 5% auto; text-align: center; } h1{font-size: 2em; padding: 20px 0;} li:hover{cursor: pointer} li { background: transparent; outline: none; position: relative; padding: 15px 50px; overflow: hidden; } /*li:before (attr data-hover)*/ li:hover:before{opacity: 1; transform: translate(0,0);} li:before{ content: attr(data-hover); position: absolute; top: 1.1em; left: 0; width: 100%; text-transform: uppercase; letter-spacing: 3px; font-weight: 800; font-size: .8em; opacity: 0; transform: translate(-100%,0); transition: all .4s ease-in-out; } /*li div (li text before hover)*/ li:hover a{opacity: 0; transform: translate(100%,0)} li a{ text-transform: uppercase; letter-spacing: 3px; font-weight: 800; font-size: .8em; transition: all .4s ease-in-out; }
Developer | Deyan Dimitrov |
Username | deyand |
Uploaded | November 13, 2022 |
Rating | 3 |
Size | 1,986 Kb |
Views | 18,216 |
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 |
Splash background image with text | 2,206 Kb |
Responsive Mobile Menu | 3,267 Kb |
Responsive Mobile Menu with CSS | 2,796 Kb |
Expandable Menu | 3,006 Kb |
Fixed header jquery | 3,367 Kb |
Filtering with shuffle.js | 2,712 Kb |
Sliding side menu with icons | 2,357 Kb |
A Pen by Deyan Dimitrov | 2,253 Kb |
Dropdown Menu on Image Click with Zoom | 2,639 Kb |
Adaptive div height | 1,719 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 |
Simple animated hover effect | Pobee-norris | 3,044 Kb |
Acorrdian 2016 | Milanodituti | 3,720 Kb |
Cloud upload | Jaflo | 2,774 Kb |
Subscription Newsletter - Before inlining | Bradstrong | 7,526 Kb |
Falling Down the Rabbit Hole | Rachelnabors | 4,578 Kb |
Slider css only | Armandobau | 2,161 Kb |
My Starter Kit For Codepen | Dkdesign | 2,012 Kb |
Voting App - register | MatheusLima92 | 1,948 Kb |
A Pen by Stan Williams | Stanssongs | 6,706 Kb |
Formations | Cantelope | 5,731 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!