Neat hover animations on buttons
How do I make an neat hover animations on buttons?
What is a neat hover animations on buttons? How do you make a neat hover animations on buttons? This script and codes were developed by Pankaj Parashar on 10 July 2022, Sunday.
Neat hover animations on buttons - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Neat hover animations on buttons</title> <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! */ @import url(http://fonts.googleapis.com/css?family=Nunito:300);
body { font-family: "Nunito", sans-serif; font-size: 24px; }
a { text-decoration: none; }
p { text-align: center; }
sup { font-size: 36px; font-weight: 100; line-height: 55px; }
.button
{ text-transform: uppercase; letter-spacing: 2px; text-align: center; color: #0C5; font-size: 24px; font-family: "Nunito", sans-serif; font-weight: 300; margin: 5em auto; position: absolute; top:0; right:0; bottom:0; left:0; padding: 20px 0; width: 220px; height:30px; background: #0D6; border: 1px solid #0D6; color: #FFF; overflow: hidden; transition: all 0.5s;
}
.button:hover, .button:active
{ text-decoration: none; color: #0C5; border-color: #0C5; background: #FFF;
}
.button span
{ display: inline-block; position: relative; padding-right: 0; transition: padding-right 0.5s;
}
.button span:after
{ content: ' '; position: absolute; top: 0; right: -18px; opacity: 0; width: 10px; height: 10px; margin-top: -10px; background: rgba(0, 0, 0, 0); border: 3px solid #FFF; border-top: none; border-right: none; transition: opacity 0.5s, top 0.5s, right 0.5s; transform: rotate(-45deg);
}
.button:hover span, .button:active span
{ padding-right: 30px;
}
.button:hover span:after, .button:active span:after
{ transition: opacity 0.5s, top 0.5s, right 0.5s; opacity: 1; border-color: #0C5; right: 0; top: 50%;
} </style> <script src="https://cdnjs.cloudflare.com/ajax/libs/prefixfree/1.0.7/prefixfree.min.js"></script>
</head>
<body> <p>Come roll over me...<br><sup>↓</sup></p>
<a href="#" class="button"> <span>Hover Me</span>
</a> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script>
</body>
</html>
Neat hover animations on buttons - Script Codes CSS Codes
@import url(http://fonts.googleapis.com/css?family=Nunito:300);
body { font-family: "Nunito", sans-serif; font-size: 24px; }
a { text-decoration: none; }
p { text-align: center; }
sup { font-size: 36px; font-weight: 100; line-height: 55px; }
.button
{ text-transform: uppercase; letter-spacing: 2px; text-align: center; color: #0C5; font-size: 24px; font-family: "Nunito", sans-serif; font-weight: 300; margin: 5em auto; position: absolute; top:0; right:0; bottom:0; left:0; padding: 20px 0; width: 220px; height:30px; background: #0D6; border: 1px solid #0D6; color: #FFF; overflow: hidden; transition: all 0.5s;
}
.button:hover, .button:active
{ text-decoration: none; color: #0C5; border-color: #0C5; background: #FFF;
}
.button span
{ display: inline-block; position: relative; padding-right: 0; transition: padding-right 0.5s;
}
.button span:after
{ content: ' '; position: absolute; top: 0; right: -18px; opacity: 0; width: 10px; height: 10px; margin-top: -10px; background: rgba(0, 0, 0, 0); border: 3px solid #FFF; border-top: none; border-right: none; transition: opacity 0.5s, top 0.5s, right 0.5s; transform: rotate(-45deg);
}
.button:hover span, .button:active span
{ padding-right: 30px;
}
.button:hover span:after, .button:active span:after
{ transition: opacity 0.5s, top 0.5s, right 0.5s; opacity: 1; border-color: #0C5; right: 0; top: 50%;
}
Developer | Pankaj Parashar |
Username | pankajparashar |
Uploaded | July 10, 2022 |
Rating | 4.5 |
Size | 2,697 Kb |
Views | 62,744 |
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 |
Deconstruction of Twitter Logo | 2,830 Kb |
Canvas Polar Clock | 2,882 Kb |
3D Pie Chart using amCharts.js | 1,958 Kb |
Selection Co-ordinates | 2,822 Kb |
The Chili Recipe | 23,620 Kb |
Reading Position Indicator | 5,454 Kb |
Pure CSS Tags | 2,089 Kb |
Todo App using React.js | 2,487 Kb |
Arsenal vs Tottenham - Match Day 3 | 4,184 Kb |
Minimal business card | 2,447 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 |
Scroll Arrow | Robooneus | 4,437 Kb |
Day 11 - Calendar Card | Arnellebalane | 6,984 Kb |
Blog Concept - Single Post | Marionebl | 9,603 Kb |
Drop Cap | Gsaiki | 1,571 Kb |
A Pen by James Podles | Jpod | 2,656 Kb |
Fluid Responsive Typography | Jonmilner | 4,205 Kb |
3d css cube | Semenchenko | 4,578 Kb |
Octopus Bar iPad App Interactions | Davidkpiano | 6,735 Kb |
12 DAYS OF XMAS | Proto78 | 2,313 Kb |
CSS3 Media Queries demo | Machal | 1,824 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!