Amazing animated CSS Ghost Button
How do I make an amazing animated css ghost button?
By Faizan Asad. What is a amazing animated css ghost button? How do you make a amazing animated css ghost button? This script and codes were developed by Faizan Asad on 04 July 2022, Monday.
Amazing animated CSS Ghost Button - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Amazing animated CSS Ghost Button</title> <link rel="stylesheet" href="css/style.css">
</head>
<body>
<button class="button" type="button" data-hover="DOWNLOAD" data-active="IT'S FREE"><span>HOVER HERE</span></button>
</body>
</html>
Amazing animated CSS Ghost Button - Script Codes CSS Codes
*,
*:before,
*:after { -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box;
}
body { text-align: center; background: #00C8FF;
}
/* .button */
.button { display: inline-block; position: relative; margin: 1em; padding: 0.67em; border: 2px solid #FFF; overflow: hidden; text-decoration: none; font-size: 2em; outline: none; color: #FFF; background: transparent; font-family: 'raleway', sans-serif;
}
.button span { -webkit-transition: 0.6s; -moz-transition: 0.6s; -o-transition: 0.6s; transition: 0.6s; -webkit-transition-delay: 0.2s; -moz-transition-delay: 0.2s; -o-transition-delay: 0.2s; transition-delay: 0.2s;
}
.button:before,
.button:after { content: ''; position: absolute; top: 0.67em; left: 0; width: 100%; text-align: center; opacity: 0; -webkit-transition: .4s,opacity .6s; -moz-transition: .4s,opacity .6s; -o-transition: .4s,opacity .6s; transition: .4s,opacity .6s;
}
/* :before */
.button:before { content: attr(data-hover); -webkit-transform: translate(-150%,0); -moz-transform: translate(-150%,0); -ms-transform: translate(-150%,0); -o-transform: translate(-150%,0); transform: translate(-150%,0);
}
/* :after */
.button:after { content: attr(data-active); -webkit-transform: translate(150%,0); -moz-transform: translate(150%,0); -ms-transform: translate(150%,0); -o-transform: translate(150%,0); transform: translate(150%,0);
}
/* Span on :hover and :active */
.button:hover span,
.button:active span { opacity: 0; -webkit-transform: scale(0.3); -moz-transform: scale(0.3); -ms-transform: scale(0.3); -o-transform: scale(0.3); transform: scale(0.3);
}
/* We show :before pseudo-element on :hover and :after pseudo-element on :active
*/
.button:hover:before,
.button:active:after { opacity: 1; -webkit-transform: translate(0,0); -moz-transform: translate(0,0); -ms-transform: translate(0,0); -o-transform: translate(0,0); transform: translate(0,0); -webkit-transition-delay: .4s; -moz-transition-delay: .4s; -o-transition-delay: .4s; transition-delay: .4s;
}
/* We hide :before pseudo-element on :active
*/
.button:active:before { -webkit-transform: translate(-150%,0); -moz-transform: translate(-150%,0); -ms-transform: translate(-150%,0); -o-transform: translate(-150%,0); transform: translate(-150%,0); -webkit-transition-delay: 0s; -moz-transition-delay: 0s; -o-transition-delay: 0s; transition-delay: 0s;
}
Developer | Faizan Asad |
Username | faizanasad |
Uploaded | July 04, 2022 |
Rating | 3 |
Size | 2,029 Kb |
Views | 30,360 |
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 |
Blog sign | 2,092 Kb |
Blogger email sign up form | 1,783 Kb |
Stunning Animated CSS3 Download Button | 2,151 Kb |
Facebook nav | 2,822 Kb |
Snake Game | 3,206 Kb |
Envato | 3,286 Kb |
Amazing Tag Cloud | 3,130 Kb |
Amazing CSS Menu with Notification Badges | 2,549 Kb |
Awesome CSS Footer Social Buttons | 2,179 Kb |
Bing Clone Only HTML | 16,169 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 |
Starting out with Ember.JS | Cfleschhut | 4,808 Kb |
Heartbeat | Apetrov | 2,079 Kb |
ASCII triangle image overlay | Mitchdot | 2,200 Kb |
Importable Clearfix | Corysimmons | 1,411 Kb |
CSS Infinite 360 | APinix | 5,564 Kb |
Multicolumns 2 | Raphaelgoetter | 1,857 Kb |
Testing Portfolio Page | Sideshowli | 3,395 Kb |
Bootstrap example | Ssaakkaa | 2,716 Kb |
CSS Org Chart | Appirio-ux | 3,882 Kb |
Use the Twitchtv JSON API | Roksanaop | 3,561 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!