Sliding link on hover

Size
1,986 Kb
Views
18,216

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 Previews

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; }
Sliding link on hover - Script Codes
Sliding link on hover - Script Codes
Home Page Home
Developer Deyan Dimitrov
Username deyand
Uploaded November 13, 2022
Rating 3
Size 1,986 Kb
Views 18,216
Do you need developer help for Sliding link on hover?

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!

Deyan Dimitrov (deyand) Script Codes
Create amazing love letters 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!