Subscribe Button
How do I make an subscribe button?
Click Me.. What is a subscribe button? How do you make a subscribe button? This script and codes were developed by Sasha on 12 June 2022, Sunday.
Subscribe Button - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Subscribe Button</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <div class="wrap"> <div> <input type="checkbox" id="toggle" /> <label class="button" for="toggle" > </label> </div> <div class="parent"> <div class="text sub">Subscribe Now </div> <div class="text thanks">Thanks for Subscribing </div> </div>
</div> <script src='https://cdnjs.cloudflare.com/ajax/libs/jquery/3.1.0/jquery.min.js'></script> <script src="js/index.js"></script>
</body>
</html>
Subscribe Button - Script Codes CSS Codes
@import url("https://fonts.googleapis.com/css?family=Open+Sans");
body { background: #21CDB2;
}
.wrap { height: 100vh; display: flex; justify-content: center; align-items: center;
}
.wrap div { display: flex; justify-content: center; align-items: center; margin: 8px;
}
.parent { position: relative;
}
.parent .sub { transition: all 0.5s ease-in-out;
}
.parent .thanks { font-size: 13px; transition: all 0.5s ease-in-out; position: absolute; top: -5px; left: 0; opacity: 0;
}
.text { font-size: 17px; color: #F5F5F5; font-family: 'Open Sans', sans-serif; letter-spacing: 2px; text-transform: uppercase; transition: all 0.5s ease-in-out;
}
#toggle { display: none;
}
.button { position: absolute; z-index: 999; width: 28px; height: 28px; background: #F9F9F9; border-radius: 10%; transition: all 0.5s ease-in-out; cursor: pointer;
}
.button:before { position: absolute; top: 13px; left: 6px; content: ''; width: 16px; height: 2px; background: #21CDB2; transform: rotate(90deg);
}
.button:after { position: absolute; top: 13px; left: 6px; content: ''; width: 16px; height: 2px; background: #21CDB2;
}
#toggle:checked ~ .nav { opacity: 1; transform: translateY(10%);
}
#toggle:checked ~ .button { transform: rotate(135deg); box-shadow: 0 0 0 0 transparent; border-radius: 100%;
}
#toggle:checked ~ .subbed { opacity: 1;
}
Subscribe Button - Script Codes JS Codes
// $(".button").blur(function() {
// alert("lost");
// });
$('#toggle').click(function() { if ($(this).is(":checked")) { $(".sub").css("opacity", 0); $(".thanks").css("opacity", 1); } else if ($(this).is(":not(:checked)")) { $(".sub").css("opacity", 1); $(".thanks").css("opacity", 0); }
});
Developer | Sasha |
Username | sashatran |
Uploaded | June 12, 2022 |
Rating | 4.5 |
Size | 2,991 Kb |
Views | 184,184 |
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 |
VueJS Zip Code Finder | 3,554 Kb |
Google Inspired Floating Action Button | 2,967 Kb |
Pages of 2017 | 3,411 Kb |
SVG Filter Gooey Share, Social Media Button | 3,275 Kb |
Animated CSS Tooltip | 2,818 Kb |
CSS Girl | 3,535 Kb |
CSS Gallery Hover Effect | 2,938 Kb |
Svg Stars Experiment | 4,245 Kb |
VueJS Todo List | 2,158 Kb |
Moving head with Parallax.js | 3,066 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 |
IE11 Test | Boostnewmedia | 4,998 Kb |
Heartbeat | Apetrov | 2,079 Kb |
Roman Numerical Converter | Vhall_io | 2,102 Kb |
Flat design iframe | Damienpm | 1,819 Kb |
Atom | Bhlaird | 1,932 Kb |
Animated Logo | Shakdaniel | 2,672 Kb |
Front in Aracaju Logo Pure CSS | Shankarcabus | 2,581 Kb |
Calculator | Rzencoder | 4,572 Kb |
Vertical Pan Hammer.js example | Jtangelder | 2,144 Kb |
Count checked checkboxes with jQuery | Mestika | 2,343 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!